Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow non-coordinate-sorted bam input to eXpress #581

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tools/express/express_wrapper.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<tool id="express" name="eXpress" version="1.1.1">
<tool id="express" name="eXpress" version="1.5.1">
<description>Quantify the abundances of a set of target sequences from sampled subsequences</description>
<requirements>
<requirement type="package" version="1.1.1">eXpress</requirement>
<requirement type="package" version="1.5.1">eXpress</requirement>
</requirements>
<command>
express --no-update-check
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
express --no-update-check
#if $bamOrSamFile.ext == "qname_sorted.bam"
ln -s `$bamOrSamFile` hits.sorted
#else
samtools sort -n '$bamOrSamFile' hits.sorted
#end if
express --no-update-check

Plus: replace $bamOrSamFile on the last line of the command block with hits.sorted (btw. all input files need to be single quoted).

Maybe in the else branch one could check with samtools view -H ... | grep -q "@HD\t.*\tSO:unsorted" if the sam / bam file is sorted before calling sort again.

Expand All @@ -25,7 +25,7 @@
</command>
<inputs>
<param format="fasta" name="multiFasta" type="data" label="A set of target references (annotation) in multi-FASTA format" help="The multi-FASTA file can also be a fasta file." />
<param format="sam,bam" name="bamOrSamFile" type="data" label="Alignments in the BAM or SAM format" help="The set of aligned reads." />
<param format="sam,unsorted.bam,qname_sorted.bam" name="bamOrSamFile" type="data" label="Alignments in the BAM or SAM format" help="The set of aligned reads." />
<conditional name="additional_params">
<param name="use_additional" type="select" label="Use Additional Parameters?">
<option value="no">No</option>
Expand Down
6 changes: 0 additions & 6 deletions tools/express/tool_dependencies.xml

This file was deleted.