Skip to content

Commit

Permalink
Merge pull request #659 from genomic-medicine-sweden/fix_sex
Browse files Browse the repository at this point in the history
Fix parsing of sex in config
  • Loading branch information
jemten authored Jan 10, 2025
2 parents 41cd7fc + 4a84cb2 commit da6ee67
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- bcftools annotate declaration in annotate CADD subworkflow [#624](https://github.com/nf-core/raredisease/pull/624)
- Rhocallviz subworkflow will only be invocated once per sample [#621](https://github.com/nf-core/raredisease/pull/621)
- Updated createCaseChannel function to include a check for maternal and paternal ids being set to a numeric 0 [#643](https://github.com/nf-core/raredisease/pull/643)
- Fixed issue of parsing sample sex in the configs [#659](https://github.com/nf-core/raredisease/pull/659)

### Parameters

Expand Down
2 changes: 1 addition & 1 deletion conf/modules/call_snv_deepvariant.config
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ process {
withName: '.*CALL_SNV_DEEPVARIANT:DEEPVARIANT' {
ext.args = { [
"--model_type=${params.analysis_type.toUpperCase()}",
meta.sex == "1" ? params.genome == 'GRCh37' ? '--haploid_contigs="X,Y"' : '--haploid_contigs="chrX,chrY"' : ''
meta.sex == 1 ? params.genome == 'GRCh37' ? '--haploid_contigs="X,Y"' : '--haploid_contigs="chrX,chrY"' : ''
].join(' ') }
ext.prefix = { "${meta.id}_deepvar" }
}
Expand Down
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 == 1 ? '--sex male' : '--sex female',
'--size 5000',
'--maxbnd 5000'
].join(' ') }
Expand Down

0 comments on commit da6ee67

Please sign in to comment.