Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply QC to leak-corrected traces. Fix subtraction plots. #24

Merged
merged 27 commits into from
Aug 8, 2024

Conversation

joeyshuttleworth
Copy link
Collaborator

@joeyshuttleworth joeyshuttleworth commented Aug 8, 2024

Description

Related to #11

Apply the hERG QC to leak-corrected traces instead of raw traces (as in 10.1016/j.bpj.2019.07.029)

Additionally, fix subtraction plots which had incorrect leak-subtraction. Modify the notation in the subtraction plots so that it matches our in-progress publications.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Testing

  • Testing is done automatically and codecov shows test coverage
  • This cannot be tested automatically

Documentation checklist

  • I have updated all documentation in the code where necessary.
  • I have checked spelling in all (new) comments and documentation.
  • I have added a note to RELEASE.md if relevant (new feature, breaking change, or notable bug fix).

Copy link
Collaborator Author

@joeyshuttleworth joeyshuttleworth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some unnecessary lines/syntax added

pcpostprocess/scripts/run_herg_qc.py Outdated Show resolved Hide resolved
pcpostprocess/scripts/run_herg_qc.py Outdated Show resolved Hide resolved
pcpostprocess/scripts/run_herg_qc.py Outdated Show resolved Hide resolved
pcpostprocess/scripts/run_herg_qc.py Outdated Show resolved Hide resolved
pcpostprocess/scripts/run_herg_qc.py Outdated Show resolved Hide resolved
pcpostprocess/scripts/run_herg_qc.py Outdated Show resolved Hide resolved
pcpostprocess/subtraction_plots.py Outdated Show resolved Hide resolved
@@ -914,12 +910,6 @@ def run_qc_for_protocol(readname, savename, time_strs, args):
before_currents[sweep, :] = before_raw
after_currents[sweep, :] = after_raw

R_leftover = np.full(before_currents.shape[0], np.nan)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks important, was it duplicated somewhere else?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it was originally (and still is) in `extract_protocol', meaning we get an R_leftover value for every single protocol in the dataset and not just the staircase protocol.

@joeyshuttleworth joeyshuttleworth merged commit e520c88 into main Aug 8, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants