Skip to content

Commit

Permalink
Ignore FASTA reference for BAM input
Browse files Browse the repository at this point in the history
  • Loading branch information
wm75 committed Jan 31, 2024
1 parent 5752e8d commit 09de84c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tools/htseq_count/htseq-count.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@
##set up input files
#set $name_sorted_alignment_filename = "name_sorted.bam"
#set $ref_index = "ref.fai"
#if str($reference_source.reference_source_selector) == "history":
samtools faidx --fai-idx $ref_index '${reference_source.ref_file}' 2>&1 || echo "Error running samtools faidx for htseq-count" >&2 &&
#elif str($reference_source.reference_source_selector) == "cached":
ln -s '${reference_source.ref_file.fields.path}.fai' $ref_index
#if $samfile.extension == 'sam':
#if str($reference_source.reference_source_selector) == "history":
samtools faidx --fai-idx $ref_index '${reference_source.ref_file}' 2>&1 || echo "Error running samtools faidx for htseq-count" >&2 &&
#elif str($reference_source.reference_source_selector) == "cached":
ln -s '${reference_source.ref_file.fields.path}.fai' $ref_index
#end if
#end if
#if $samfile.extension == 'sam' and str($reference_source.reference_source_selector):
Expand Down Expand Up @@ -130,7 +132,7 @@
</when>
</conditional>
<conditional name="reference_source">
<param name="reference_source_selector" type="select" label="Provide a reference sequence?" help="Required for SAM input without @SQ headers, not necessary otherwise.">
<param name="reference_source_selector" type="select" label="Provide a reference sequence?" help="Required for SAM input without @SQ headers, not necessary otherwise and ignored for BAM input.">
<option value="">No</option>
<option value="cached">Locally cached</option>
<option value="history">History</option>
Expand Down

0 comments on commit 09de84c

Please sign in to comment.