Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:nf-core/raredisease into mtrefactor
Browse files Browse the repository at this point in the history
  • Loading branch information
ramprasadn committed Sep 15, 2023
2 parents 9c1f1c0 + 0ad16db commit f1566cd
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Updated modules from nf-core [#412](https://github.com/nf-core/raredisease/pull/412)
- If present, remove duplicate entries in probands and upd_children in the meta. [#420](https://github.com/nf-core/raredisease/pull/420)
- Fixes vep starting as many instances as the square of the number of scatters. [#405](https://github.com/nf-core/raredisease/pull/405)
- Replaced the logic where we added an arbitrary substring to keep file names unique after alignment which we then removed using a split operator, with a simple copy operation. [#425](https://github.com/nf-core/raredisease/pull/425/files)

### `Updated`

Expand Down
1 change: 1 addition & 0 deletions conf/test.config
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ params {

// analysis params
skip_cnv_calling = true
skip_mt_analysis = true

// Input data
input = 'https://raw.githubusercontent.com/nf-core/test-datasets/raredisease/testdata/samplesheet_trio.csv'
Expand Down
2 changes: 1 addition & 1 deletion subworkflows/local/alignment/align_bwamem2.nf
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ workflow ALIGN_BWAMEM2 {
// Merge multiple lane samples and index
BWAMEM2_MEM.out.bam
.map{ meta, bam ->
new_id = meta.id.split('_')[0]
new_id = meta.sample
new_meta = meta + [id:new_id, read_group:"\'@RG\\tID:" + new_id + "\\tPL:" + val_platform + "\\tSM:" + new_id + "\'"]
[groupKey(new_meta, new_meta.num_lanes), bam]
}
Expand Down
2 changes: 1 addition & 1 deletion subworkflows/local/alignment/align_sentieon.nf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ workflow ALIGN_SENTIEON {
SENTIEON_BWAMEM.out
.bam_and_bai
.map{ meta, bam, bai ->
new_id = meta.id.split('_')[0]
new_id = meta.sample
new_meta = meta + [id:new_id, read_group:"\'@RG\\tID:" + new_id + "\\tPL:" + val_platform + "\\tSM:" + new_id + "\'"]
[groupKey(new_meta, new_meta.num_lanes), bam, bai]
}
Expand Down
8 changes: 3 additions & 5 deletions workflows/raredisease.nf
Original file line number Diff line number Diff line change
Expand Up @@ -641,9 +641,7 @@ def makePed(samples) {
outfile.text = ['#family_id', 'sample_id', 'father', 'mother', 'sex', 'phenotype'].join('\t')
def samples_list = []
for(int i = 0; i<samples.size(); i++) {
sample_tokenized = samples[i].id.tokenize("_")
sample_tokenized.removeLast()
sample_name = sample_tokenized.join("_")
sample_name = samples[i].sample
if (!samples_list.contains(sample_name)) {
outfile.append('\n' + [samples[i].case_id, sample_name, samples[i].paternal, samples[i].maternal, samples[i].sex, samples[i].phenotype].join('\t'));
samples_list.add(sample_name)
Expand All @@ -662,10 +660,10 @@ def create_case_channel(List rows) {

for (item in rows) {
if (item.phenotype == "2") {
probands.add(item.id.split("_T")[0])
probands.add(item.sample)
}
if ( (item.paternal!="0") && (item.paternal!="") && (item.maternal!="0") && (item.maternal!="") ) {
upd_children.add(item.id.split("_T")[0])
upd_children.add(item.sample)
}
if ( (item.paternal!="0") && (item.paternal!="") ) {
father = item.paternal
Expand Down

0 comments on commit f1566cd

Please sign in to comment.