-
Notifications
You must be signed in to change notification settings - Fork 35
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
updating meta.sex type check #559
Conversation
|
subworkflows/local/gens.nf
Outdated
@@ -36,8 +36,8 @@ workflow GENS { | |||
|
|||
COLLECTREADCOUNTS.out.hdf5 | |||
.branch { meta, counts -> | |||
female: meta.sex.equals(2) || meta.sex.equals(0) | |||
male: meta.sex.equals(1) | |||
female: meta.sex.equals('2') || meta.sex.equals('other') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine to me, but have you checked a test case through this to make sure that this works as expected? :)
And perhaps you can use matches instead of equals here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried enabling the gens subworkflow and ran a stub run and was then able to get collectreadscounts to execute, which it didn't before.
Good point about matches. Will update
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
This PR updates the meta.sex checks
PR checklist
nf-core lint
).nextflow run . -profile test,docker --outdir <OUTDIR>
).nextflow run . -profile test_one_sample,docker --outdir <OUTDIR>
).nextflow run . -profile debug,test,docker --outdir <OUTDIR>
).docs/usage.md
is updated.docs/output.md
is updated.CHANGELOG.md
is updated.README.md
is updated (including new tool citations and authors/contributors).