Skip to content

Commit

Permalink
Merge pull request #19 from mfoll/dev
Browse files Browse the repository at this point in the history
Resolves #14
  • Loading branch information
mfoll committed Sep 18, 2015
2 parents 8445e6e + ecbaac4 commit abd893a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions samtools_regression_somatic_vcf.nf
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,7 @@ process mpileup2table {

// perform regression in R
process R_regression {

errorStrategy 'ignore'


storeDir { params.bam_folder+'/VCF/' }

tag { region_tag }
Expand All @@ -142,11 +140,12 @@ process R_regression {

shell:
'''
# create a dummy empty pdf to avoid an error in the process when no variant is found
touch !{region_tag}_empty.pdf
pileup_nbrr_caller_vcf.r !{region_tag}.vcf !{fasta_ref} !{params.min_qval} !{params.min_dp} !{params.min_ao} !{params.sb_type} !{params.sb_snv} !{params.sb_indel} !{params.all_sites} !{params.do_plots}
'''
}
PDF.filter { it.size() == 0 }.subscribe { it.delete() }
PDF.flatten().filter { it.size() == 0 }.subscribe { it.delete() }

// merge all vcf files in one big file
process collect_vcf_result {
Expand Down

0 comments on commit abd893a

Please sign in to comment.