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

spades: add OMP_THREAD_LIMIT #4711

Merged
merged 2 commits into from
Aug 10, 2022
Merged
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
3 changes: 2 additions & 1 deletion tools/spades/biosyntheticspades.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#end if
@PREPROCESS_NANOPORE_PACBIO_FILES@

@OMP_THREADS@
## run
spades.py --bio
-o 'output'
Expand Down Expand Up @@ -175,7 +176,7 @@ A detailed description can be found in the `output section <https://github.com/a

**References**

More information can be found on `github <https://github.com/ablab/spades>`_ and on the `project website <http://cab.spbu.ru/software/biosyntheticspades>`_.
More information can be found on `github <https://github.com/ablab/spades>`_.
]]></help>
<expand macro="citations">
<citation type="doi">10.1101/gr.243477.118</citation>
Expand Down
3 changes: 2 additions & 1 deletion tools/spades/coronaspades.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
@PREPROCESS_SANGER_FILES@


@OMP_THREADS@
## run
coronaspades.py
-o 'output'
Expand Down Expand Up @@ -162,7 +163,7 @@ Input data can be provided as interlaced, forward and reverse, merged and unpair

**References**

More information can be found on `github <https://github.com/ablab/spades>`_ and on the `project website <https://cab.spbu.ru/software/coronaspades/>`_.
More information can be found on `github <https://github.com/ablab/spades>`_.
]]></help>
<expand macro="citations">
<citation type="doi">10.1093/bioinformatics/btab597</citation>
Expand Down
7 changes: 5 additions & 2 deletions tools/spades/macros.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<macros>
<token name="@TOOL_VERSION@">3.15.4</token>
<token name="@VERSION_SUFFIX@">1</token>
<token name="@VERSION_SUFFIX@">2</token>
<xml name="requirements">
<requirements>
<requirement type="package" version="@TOOL_VERSION@">spades</requirement>
Expand Down Expand Up @@ -43,6 +43,9 @@
</param>
</xml>

<token name="@OMP_THREADS@"><![CDATA[
export OMP_THREAD_LIMIT=\${GALAXY_SLOTS:-4} &&
]]></token>

<!-- PREPARE INPUT FILES-->

Expand Down Expand Up @@ -738,7 +741,7 @@ A detailed description can be found in the `input section <https://github.com/ab
SPAdes - St. Petersburg genome assembler - is an assembly toolkit containing various assembly pipelines.
</token>
<token name="@IONTORRENT@"><![CDATA[
The selection of k-mer length is non-trivial for IonTorrent. If the dataset is more or less conventional (good coverage, not high GC, etc), then use our `recommendation for long reads <https://cab.spbu.ru/files/release3.12.0/manual.html#sec3.4>`_ (e.g. assemble using k-mer lengths 21,33,55,77,99,127). However, due to increased error rate some changes of k-mer lengths (e.g. selection of shorter ones) may be required. For example, if you ran SPAdes with k-mer lengths 21,33,55,77 and then decided to assemble the same data set using more iterations and larger values of K, you can run SPAdes once again specifying the same output folder and the following options: --restart-from k77 -k 21,33,55,77,99,127 --mismatch-correction -o <previous_output_dir>. Do not forget to copy contigs and scaffolds from the previous run. We're planning to tackle issue of selecting k-mer lengths for IonTorrent reads in next versions.
The selection of k-mer length is non-trivial for IonTorrent. If the dataset is more or less conventional (good coverage, not high GC, etc), then use our `recommendation for long reads <https://github.com/ablab/spades#sec3.4>`_ (e.g. assemble using k-mer lengths 21,33,55,77,99,127). However, due to increased error rate some changes of k-mer lengths (e.g. selection of shorter ones) may be required. For example, if you ran SPAdes with k-mer lengths 21,33,55,77 and then decided to assemble the same data set using more iterations and larger values of K, you can run SPAdes once again specifying the same output folder and the following options: --restart-from k77 -k 21,33,55,77,99,127 --mismatch-correction -o <previous_output_dir>. Do not forget to copy contigs and scaffolds from the previous run. We're planning to tackle issue of selecting k-mer lengths for IonTorrent reads in next versions.

You may need no error correction for Hi-Q enzyme at all. However, we suggest trying to assemble your data with and without error correction and select the best variant.

Expand Down
3 changes: 2 additions & 1 deletion tools/spades/metaplasmidspades.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
@PREPROCESS_CONTIGS_FILES@
@PREPROCESS_ASSEMBLY_GRAPH_FILES@

@OMP_THREADS@
## run
spades.py --meta --plasmid
-o 'output'
Expand Down Expand Up @@ -233,7 +234,7 @@ metaplasmidSPAdes is a subtool for assembling plasmids from metagenomic data set

**References**

More information can be found on `github <https://github.com/ablab/spades>`_ and on the `project website <http://cab.spbu.ru/software/spades>`_.
More information can be found on `github <https://github.com/ablab/spades>`_.
]]></help>
<expand macro="citations">
<citation type="doi">10.1101/gr.241299.118</citation>
Expand Down
3 changes: 2 additions & 1 deletion tools/spades/metaspades.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#end if
@PREPROCESS_NANOPORE_PACBIO_FILES@

@OMP_THREADS@
## run
metaspades.py
-o 'output'
Expand Down Expand Up @@ -185,7 +186,7 @@ metaSPAdes is a subtool for assembling metagenomic data sets.

**References**

More information can be found on `github <https://github.com/ablab/spades>`_ and on the `project website <http://cab.spbu.ru/software/meta-spades>`_.
More information can be found on `github <https://github.com/ablab/spades>`_.
]]></help>
<expand macro="citations">
<citation type="doi">10.1101/gr.213959.116</citation>
Expand Down
3 changes: 2 additions & 1 deletion tools/spades/metaviralspades.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
@PREPROCESS_CONTIGS_FILES@
@PREPROCESS_ASSEMBLY_GRAPH_FILES@

@OMP_THREADS@
## run
spades.py --metaviral
-o 'output'
Expand Down Expand Up @@ -233,7 +234,7 @@ metaplasmidSPAdes is a subtool for assembling plasmids from metagenomic data set

**References**

More information can be found on `github <https://github.com/ablab/spades>`_ and on the `project website <http://cab.spbu.ru/software/spades>`_.
More information can be found on `github <https://github.com/ablab/spades>`_.
]]></help>
<expand macro="citations">
<citation type="doi">10.1101/gr.241299.118</citation>
Expand Down
3 changes: 2 additions & 1 deletion tools/spades/plasmidspades.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
@PREPROCESS_CONTIGS_FILES@
@PREPROCESS_ASSEMBLY_GRAPH_FILES@

@OMP_THREADS@
## run
plasmidspades.py
$operation_mode
Expand Down Expand Up @@ -377,7 +378,7 @@ plasmidSPAdes is a subtool for assembling plasmid data sets.

**References**

More information can be found on `github <https://github.com/ablab/spades>`_ and on the `project website <http://cab.spbu.ru/software/plasmid-spades>`_.
More information can be found on `github <https://github.com/ablab/spades>`_.
]]></help>
<expand macro="citations">
<citation type="doi">10.1093/bioinformatics/btw493</citation>
Expand Down
4 changes: 2 additions & 2 deletions tools/spades/rnaspades.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
@PREPROCESS_CONTIGS_FILES@
@PREPROCESS_FL_RNA_FILES@


@OMP_THREADS@
## run
rnaspades.py
-o 'output'
Expand Down Expand Up @@ -238,7 +238,7 @@ and strand-specificity. Transcript quantification for each sample can be done af

**References**

More information can be found on on `github <https://github.com/ablab/spades>`_ and on the `project website <http://cab.spbu.ru/software/rnaspades>`_.
More information can be found on on `github <https://github.com/ablab/spades>`_.
]]></help>
<expand macro="citations">
<citation type="doi">10.1101/420208</citation>
Expand Down
3 changes: 2 additions & 1 deletion tools/spades/rnaviralspades.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
@PREPROCESS_CONTIGS_FILES@
@PREPROCESS_SANGER_FILES@

@OMP_THREADS@
## run
spades.py --rnaviral
-o 'output'
Expand Down Expand Up @@ -351,7 +352,7 @@ rnaviralSPAdes is a pipeline specially designed for de novo assembler tailored f

**References**

More information are available on `github <https://github.com/ablab/spades>`_ and on the `project website <http://cab.spbu.ru/software/spades>`_.
More information are available on `github <https://github.com/ablab/spades>`_.
]]></help>
<expand macro="citations"/>
</tool>
3 changes: 2 additions & 1 deletion tools/spades/spades.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
@PREPROCESS_CONTIGS_FILES@
@PREPROCESS_SANGER_FILES@

@OMP_THREADS@
## run
spades.py
$operation_mode
Expand Down Expand Up @@ -731,7 +732,7 @@ spades.py

**References**

More information are available on `github <https://github.com/ablab/spades>`_ and on the `project website <http://cab.spbu.ru/software/spades>`_.
More information are available on `github <https://github.com/ablab/spades>`_.
]]></help>
<expand macro="citations">
<citation type="doi">10.1089/cmb.2012.0021</citation>
Expand Down