# HG changeset patch # User Jim Johnson # Date 1320778952 21600 # Node ID f49f5a460c74943de0c042b0701fbc4ad262d4ad # Parent 72ab00e732c306395e6f4d3b890ae81039418627 GSNAP - add and refine param options for gmap v 2011-10-16 diff -r 72ab00e732c3 -r f49f5a460c74 gmap/gmap_indices.loc.sample --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gmap/gmap_indices.loc.sample Tue Nov 08 13:02:32 2011 -0600 @@ -0,0 +1,10 @@ +#This is a sample file distributed with Galaxy that enables tools +#to use a directory of GMAPDB indexed sequences data files. You will need +#to create these data files using gmap_build and then create a gmap_indices.loc file +#similar to this one (store it in this directory) that points to +#the directories in which those files are stored. The gmap_indices.loc +#file has this format (white space characters are TAB characters): +# +# +#hg18 hg18 hg18 (cmet atoi) 12,13,14,15 splicesites,introns snps /depot/data2/galaxy/gmap/hg18 +#hg19 hg19 hg19 (cmet atoi) 12,13,14,15 splicesites,introns,snps snps,dbsnp /depot/data2/galaxy/gmap/hg19 diff -r 72ab00e732c3 -r f49f5a460c74 gmap/gsnap.xml --- a/gmap/gsnap.xml Fri Oct 21 12:11:45 2011 -0500 +++ b/gmap/gsnap.xml Tue Nov 08 13:02:32 2011 -0600 @@ -40,8 +40,11 @@ -V $refGenomeSource.use_snps.snpindex.extra_files_path -v $refGenomeSource.use_snps.snpindex.metadata.snps_name #end if #end if - #if $mode.__str__ != '': - --mode=$mode + #if $refGenomeSource.mode.__str__ != '': + --mode=$refGenomeSource.mode + #end if + #if $mapq_unique_score.__str__ != '': + --mapq-unique-score=$mapq_unique_score #end if #if $computation.options == "advanced": #if $computation.max_mismatches.__str__ != '': @@ -76,6 +79,16 @@ #if $computation.adapter_strip.__str__ != '': --adapter-strip=$computation.adapter_strip #end if + #if $computation.trim_mismatch_score.__str__ != '': + --trim-mismatch-score=$computation.trim_mismatch_score + #end if + ## TODO - do we need these options (Is it tally XOR runlength?): + ## --tallydir= --use-tally=tally + ## --runlengthdir --use-runlength=runlength + #if $computation.use_tally != None and len($computation.use_tally.__str__) > 0: + ##--tallydir $os.path.dirname($computation.use_tally) --use-tally $os.path.basename($computation.use_tally) + --use-tally=$computation.use_tally + #end if ## gmap options #if $computation.gmap_mode.__str__ != '' and $computation.gmap_mode.__str__ != 'None': --gmap-mode='$computation.gmap_mode' @@ -155,9 +168,22 @@ #end if $result.creads_complement #end if - ## TODO - do we need these options (Is it tally XOR runlength?): - ## --tallydir= --use-tally=tally - ## --runlengthdir --use-runlength=runlength + #if $results.split_output == 'yes': + --split-output=gsnap_out + #if $results.fails.choice == 'nofails': + --nofails + #elif $results.fails.choice == 'failsonly': + --failsonly + #end if + $results.fails_as_input + #else + #if $results.fails.choice == 'nofails': + --nofails + #elif $results.fails.choice == 'failsonly': + --failsonly + $results.fails.fails_as_input + #end if + #end if #if $seq.format == "gsnap_fasta": $seq.circularinput $seq.gsnap #else if $seq.format == "fastq": @@ -173,7 +199,7 @@ #if $seq.filter_chastity.__str__ != 'off': --filter-chastity=$seq.filter_chastity #end if - #if $seq.paired.ispaired.__str__ == "yes": + #if $seq.paired.ispaired.__str__ == 'yes': #if $seq.paired.pairmax_dna.__str__ != '': --pairmax-dna=$seq.paired.pairmax_dna #end if @@ -185,10 +211,14 @@ $seq.fastq #end if #end if - #if $split_output == True + #if $results.split_output == 'yes': 2> $gsnap_stderr - #else - 2> $gsnap_stderr > $results + #else: + #if $results.fails.choice.__str__ == 'failsonly' and $results.fails.fails_as_input.__str__ != '': + 2> $gsnap_stderr > $gsnap_fq + #else + 2> $gsnap_stderr > $gsnap_out + #end if #end if @@ -197,12 +227,15 @@ + - + @@ -216,8 +249,8 @@ - - + both - a 'Y' is required on both ends of a paired-end read or the only end of a single-end read + + - - - - - - - - + @@ -282,8 +315,16 @@ + + + + + + + + - @@ -310,7 +351,7 @@ - + @@ -344,8 +385,16 @@ + + + + + + + + - @@ -367,7 +416,7 @@ - + @@ -426,12 +475,26 @@ + + + - - - - + + + + @@ -456,16 +519,22 @@ - + - - - - + + + + @@ -489,10 +558,13 @@ + - + + @@ -501,80 +573,184 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - (split_output == False) + + + + (results['split_output'] == 'no' and (results['fails']['choice'] != 'failsonly' or results['fails']['fails_as_input'] == False)) + + + + (results['split_output'] == 'no' and results['fails']['choice'] == 'failsonly' and results['fails']['fails_as_input'] == True) + + - - (split_output == True) + + + (results['split_output'] == 'yes') + - - (split_output == True) + + (results['split_output'] == 'yes') + - - (split_output == True) + + (results['split_output'] == 'yes') + - - (split_output == True) + + (results['split_output'] == 'yes' and seq['format'] == 'fastq' and seq['paired']['ispaired'] == True) + + + + + (results['split_output'] == 'yes' and seq['format'] == 'fastq' and seq['paired']['ispaired'] == True) + + + - - (split_output == True) + + (results['split_output'] == 'yes' and seq['format'] == 'fastq' and seq['paired']['ispaired'] == True) + + + + + + + (results['split_output'] == 'yes' and seq['format'] == 'fastq' and seq['paired']['ispaired'] == True) + - - (split_output == True) + + (results['split_output'] == 'yes' and seq['format'] == 'fastq' and seq['paired']['ispaired'] == True) + + + + + (results['split_output'] == 'yes' and seq['format'] == 'fastq' and seq['paired']['ispaired'] == True) + + + - - (split_output == True) + + + (results['split_output'] == 'yes' and seq['format'] == 'fastq' and seq['paired']['ispaired'] == True) + + + + + (results['split_output'] == 'yes' and seq['format'] == 'fastq' and seq['paired']['ispaired'] == True) + + + + + + + (results['split_output'] == 'yes' and seq['format'] == 'fastq' and seq['paired']['ispaired'] == True) + + + - - (split_output == True) + + + (results['split_output'] == 'yes' and results['fails_as_input'] == False) + - - (split_output == True) - - - + + + (results['split_output'] == 'yes' and seq['format'] == 'fastq' and seq['paired']['ispaired'] == False) + + + + (results['split_output'] == 'yes' and seq['format'] == 'fastq' and seq['paired']['ispaired'] == True) + + (results['split_output'] == 'yes' and seq['format'] == 'fastq' and seq['paired']['ispaired'] == True) + + + + diff -r 72ab00e732c3 -r f49f5a460c74 tool-data/gmap_indices.loc.sample --- a/tool-data/gmap_indices.loc.sample Fri Oct 21 12:11:45 2011 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,10 +0,0 @@ -#This is a sample file distributed with Galaxy that enables tools -#to use a directory of GMAPDB indexed sequences data files. You will need -#to create these data files using gmap_build and then create a gmap_indices.loc file -#similar to this one (store it in this directory) that points to -#the directories in which those files are stored. The gmap_indices.loc -#file has this format (white space characters are TAB characters): -# -# -#hg18 hg18 hg18 (cmet atoi) 12,13,14,15 splicesites,introns snps /depot/data2/galaxy/gmap/hg18 -#hg19 hg19 hg19 (cmet atoi) 12,13,14,15 splicesites,introns,snps snps,dbsnp /depot/data2/galaxy/gmap/hg19