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

updating meta.sex type check #559

Merged
merged 2 commits into from
May 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion conf/modules/generate_cytosure_files.config
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ process {

withName: '.*GENERATE_CYTOSURE_FILES:VCF2CYTOSURE' {
ext.args = { [
meta.sex.equals(1) ? '--sex male' : '--sex female',
meta.sex.equals('1') ? '--sex male' : '--sex female',
'--size 5000',
'--maxbnd 5000'
].join(' ') }
Expand Down
4 changes: 2 additions & 2 deletions subworkflows/local/gens.nf
Original file line number Diff line number Diff line change
Expand Up @@ -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.matches('2|other')
male: meta.sex.equals('1')
}
.set { ch_denoisereadcounts_in }

Expand Down