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

Functionality: Adding sequencing-type as a parameter to allow ingestion of exome data #666

Merged
merged 6 commits into from
Jan 28, 2024

Conversation

michael-harper
Copy link
Contributor

Adding sequencing-type as a parameter for future-proofing when exome data comes along and sequencing groups can be ingested as exomes instead of defaulting to genome.

At the moment, default_sequencing_type is set to genome, this fix would allow default_sequencing_type to be either exome or genome

…data comes along and sequencing groups can be ingested as exomes instead of defaulting to genome
Copy link
Contributor

@vivbak vivbak left a comment

Choose a reason for hiding this comment

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

Looks good! Take a look at your linting failures & test failures. In this case, you need to update the relevant tests in line with your new change. You can also add new tests to capture this new case.

@click.option(
'--sequencing-type',
type=click.Choice(['genome', 'exome']),
required=True,
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to set required to be true? Esp since we have a default 'genome' described below

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good call!

…s set correctly in the ExistingCohortParser class when the --sequencing-type flag is set to 'genome' or 'exome'. The test checks both 'genome' and 'exome' options.
@codecov-commenter
Copy link

codecov-commenter commented Jan 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (e63bda6) 68.57% compared to head (f13e1e2) 68.67%.
Report is 2 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #666      +/-   ##
==========================================
+ Coverage   68.57%   68.67%   +0.09%     
==========================================
  Files         131      131              
  Lines       10166    10198      +32     
==========================================
+ Hits         6971     7003      +32     
  Misses       3195     3195              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -280,3 +285,113 @@ async def test_get_read_filenames_no_reads_pass(self):
self.assertIn('No read files found for ', cm.output[0])

self.assertEqual(len(read_filenames), 0)

@run_as_sync
async def test_exome_sequencing_type(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe either rename or split into two so it's accurate to what we're testing

@michael-harper michael-harper merged commit 91b5ff7 into dev Jan 28, 2024
2 checks passed
@michael-harper michael-harper deleted the add-exome-as-sequencing-type-to-be-ingested branch January 28, 2024 23:36
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.

3 participants