diff --git a/tools/samtools/bam_to_sam.xml b/tools/samtools/bam_to_sam.xml index 4b4cb08942e..2a72324e481 100644 --- a/tools/samtools/bam_to_sam.xml +++ b/tools/samtools/bam_to_sam.xml @@ -1,4 +1,4 @@ - + samtools @@ -20,29 +20,32 @@ - + + - - + + - - - - + + + diff --git a/tools/samtools/sam_to_bam.py b/tools/samtools/sam_to_bam.py index d50fa809b5c..a13e982e774 100644 --- a/tools/samtools/sam_to_bam.py +++ b/tools/samtools/sam_to_bam.py @@ -68,7 +68,7 @@ def __main__(): # and the equCab2.fa file will contain fasta sequences. seq_path = check_seq_file( options.dbkey, cached_seqs_pointer_file ) tmp_dir = tempfile.mkdtemp() - if options.ref_file == 'None': + if not options.ref_file or options.ref_file == 'None': # We're using locally cached reference sequences( e.g., /galaxy/data/equCab2/sam_index/equCab2.fa ). # The indexes for /galaxy/data/equCab2/sam_index/equCab2.fa will be contained in # a file named /galaxy/data/equCab2/sam_index/equCab2.fa.fai diff --git a/tools/samtools/sam_to_bam.xml b/tools/samtools/sam_to_bam.xml index dc65ad4e209..9b295cfb2e0 100644 --- a/tools/samtools/sam_to_bam.xml +++ b/tools/samtools/sam_to_bam.xml @@ -1,4 +1,4 @@ - + converts SAM format to BAM format samtools @@ -6,11 +6,11 @@ sam_to_bam.py --input1=$source.input1 - --dbkey=${input1.metadata.dbkey} #if $source.index_source == "history": + --dbkey=${ref_file.metadata.dbkey} --ref_file=$source.ref_file #else - --ref_file="None" + --dbkey=${input1.metadata.dbkey} #end if --output1=$output1 --index_dir=${GALAXY_DATA_INDEX_DIR} @@ -22,44 +22,60 @@ - + - + - + + + + + + + + + + + + + + - + - + - +