Skip to content

Commit

Permalink
Merge counts per pool
Browse files Browse the repository at this point in the history
  • Loading branch information
BertGalle committed Apr 23, 2024
1 parent df7e622 commit 5bd91eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions modules/local/exomedepth/merge_count/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ process EXOMEDEPTH_COUNT_MERGE {
"""
for file in $files; do
if [ -f ${meta.id}_${meta.chr}.txt ]; then
paste ${meta.id}_${meta.chr}.txt <(awk '{print \$5}' \$file) > temp_auto.txt
mv temp_auto.txt ${meta.id}_${meta.chr}.txt
else
cp \$file ${meta.id}_${meta.chr}.txt
paste ${meta.id}_${meta.chr}.txt <(awk '{print \$5}' \$file) > temp_auto.txt
mv temp_auto.txt ${meta.id}_${meta.chr}.txt
else
cp \$file ${meta.id}_${meta.chr}.txt
fi
done
"""
Expand Down
4 changes: 2 additions & 2 deletions workflows/exomecnv.nf
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ workflow EXOMECNV {
.set{ ch_input_prepare }


//ch_input_prepare.BAM.view { "BAM: $it" }
//ch_input_prepare.CRAM.view { "CRAM: $it" }
//ch_input_prepare.BAM.view { "BAM: $it" }
//ch_input_prepare.CRAM.view { "CRAM: $it" }


ch_fasta = Channel.fromPath(params.fasta).map{ [[id:"reference"], it]}.collect()
Expand Down

0 comments on commit 5bd91eb

Please sign in to comment.