# HG changeset patch # User yhoogstrate # Date 1402411342 14400 # Node ID f89704ed1d8faed5575c2fa6a33aa323e4cb776d # Parent 344f5b5ddfd3e0152d4e184b9a0042bbe17750a9 Uploaded diff -r 344f5b5ddfd3 -r f89704ed1d8f varscan_mpileup2snp_from_bam.xml --- a/varscan_mpileup2snp_from_bam.xml Tue Jun 10 10:08:46 2014 -0400 +++ b/varscan_mpileup2snp_from_bam.xml Tue Jun 10 10:42:22 2014 -0400 @@ -5,7 +5,6 @@ ncurses samtools_parallel_mpileup_0_1_19a varscan - ncurses samtools @@ -13,6 +12,16 @@ #if $reference_genome_source.source_select == "attribute" and len({ alignment.metadata.dbkey:True for alignment in $alignments }.keys()) != 1 echo "Invalid number of dbkeys are found: ${ len({ alignment.metadata.dbkey:True for alignment in $alignments }.keys()) }, while only one should be used. Make sure that the alignments are done on the same reference genome and that 'tool-data/all_fasta.loc' is configured properly!" >&2 #else + #import os.path + #for $alignment in $alignments + #if not os.path.isfile(str($alignment)+".bai") + echo "- Indexing alignment file: $alignment.name " ; + samtools index $alignment 2>&1 ; + #else + echo "- Skiping indexing: $alignment.name " ; + #end if + #end for + #if $mpileup_parallelization.mpileup_parallelization_select == "true" samtools-parallel-mpileup mpileup -t $mpileup_parallelization.samtools_threads