| Miscellaneous |
| Version lineage of this tool (guids ordered most recent to oldest) |
| toolshed.g2.bx.psu.edu/repos/iuc/spades_plasmidspades/spades_plasmidspades/4.2.0+galaxy0 (this tool) |
| toolshed.g2.bx.psu.edu/repos/iuc/spades_plasmidspades/spades_plasmidspades/4.1.0+galaxy0 |
| toolshed.g2.bx.psu.edu/repos/iuc/spades_plasmidspades/spades_plasmidspades/3.15.5+galaxy3 |
| toolshed.g2.bx.psu.edu/repos/iuc/spades_plasmidspades/spades_plasmidspades/3.15.5+galaxy2 |
| toolshed.g2.bx.psu.edu/repos/iuc/spades_plasmidspades/spades_plasmidspades/3.15.5+galaxy1 |
| toolshed.g2.bx.psu.edu/repos/iuc/spades_plasmidspades/spades_plasmidspades/3.15.4+galaxy2 |
| toolshed.g2.bx.psu.edu/repos/iuc/spades_plasmidspades/spades_plasmidspades/3.15.4+galaxy1 |
| toolshed.g2.bx.psu.edu/repos/iuc/spades_plasmidspades/spades_plasmidspades/3.15.4+galaxy0 |
| toolshed.g2.bx.psu.edu/repos/iuc/spades_plasmidspades/spades_plasmidspades/3.15.3+galaxy2 |
| toolshed.g2.bx.psu.edu/repos/iuc/spades_plasmidspades/spades_plasmidspades/3.15.3+galaxy1 |
| toolshed.g2.bx.psu.edu/repos/iuc/spades_plasmidspades/spades_plasmidspades/3.15.3+galaxy0 |
| spades_plasmidspades |
| Requirements (dependencies defined in the <requirements> tag set) |
| name | version | type |
| spades | 4.2.0 | package |
| Additional information about this tool |
#set $library = 1
#import re
#def fix_ext($ext):
#set ext = $ext.replace('fastqsanger', 'fastq')
#set ext = $ext.replace('fastqillumina', 'fastq')
#return $ext
#end def
#if $singlePaired.sPaired == "single" or $singlePaired.sPaired == "paired_interlaced"
mkdir -p reads1 &&
#set file_paths1 = []
#for $input_file in $singlePaired.input1
#set ext = $fix_ext($input_file.ext)
#set fname = re.sub('[^\w\-_.]', '_', $input_file.element_identifier) + '.' + $ext
#set file_path = 'reads1/' + $fname
ln -s '$input_file' '$file_path' &&
$file_paths1.append($file_path)
#end for
#else
mkdir -p paired_reads1 &&
#set fw_reads1 = []
#set rv_reads1 = []
#for $i, $input_file in enumerate($singlePaired.input)
#set ext = $fix_ext($input_file.forward.ext)
#set file_path = 'paired_reads1/' + re.sub('[^\w\-_.]', '_', $input_file.element_identifier) + '1.' + $ext
ln -s '$input_file.forward' '$file_path' &&
$fw_reads1.append($file_path)
#set file_path = 'paired_reads1/' + re.sub('[^\w\-_.]', '_', $input_file.element_identifier) + '2.' + $ext
ln -s '$input_file.reverse' '$file_path' &&
$rv_reads1.append($file_path)
#end for
#end if
#if $additional_reads.selector == 'true'
#if $additional_reads.singlePaired.sPaired == "single" or $additional_reads.singlePaired.sPaired == "paired_interlaced"
mkdir -p reads2 &&
#set file_paths2 = []
#for $input_file in $additional_reads.singlePaired.input1
#set ext = $fix_ext($input_file.ext)
#set fname = re.sub('[^\w\-_.]', '_', $input_file.element_identifier) + '.' + $ext
#set file_path = 'reads2/' + $fname
ln -s '$input_file' '$file_path' &&
$file_paths2.append($file_path)
#end for
#else
mkdir -p paired_reads2 &&
#set fw_reads2 = []
#set rv_reads2 = []
#for $i, $input_file in enumerate($additional_reads.singlePaired.input)
#set ext = $fix_ext($input_file.forward.ext)
#set file_path = 'paired_reads2/' + re.sub('[^\w\-_.]', '_', $input_file.element_identifier) + '1.' + $ext
ln -s '$input_file.forward' '$file_path' &&
$fw_reads2.append($file_path)
#set file_path = 'paired_reads2/' + re.sub('[^\w\-_.]', '_', $input_file.element_identifier) + '2.' + $ext
ln -s '$input_file.reverse' '$file_path' &&
$rv_reads2.append($file_path)
#end for
#end if
#end if
#if $arf.nanopore
mkdir -p nanopore_reads &&
#set nanopore_reads = []
#for $i, $input_file in enumerate($arf.nanopore,1)
#set $ext = $input_file.ext.replace('fastqsanger', 'fastq')
#set $fname = 'file' + str($i) + '.' + $ext
#set $file_path = 'nanopore_reads/' + $fname
ln -s '$input_file' '$file_path' &&
$nanopore_reads.append($file_path)
#end for
#end if
#if $arf.pacbio
mkdir -p pacbio_reads &&
#set pacbio_reads = []
#for $i, $input_file in enumerate($arf.pacbio,1)
#set $ext = $input_file.ext.replace('fastqsanger', 'fastq')
#set $fname = 'file' + str($i) + '.' + $ext
#set $file_path = 'pacbio_reads/' + $fname
ln -s '$input_file' '$file_path' &&
$pacbio_reads.append($file_path)
#end for
#end if
#if $arf.sanger
mkdir -p sanger_reads &&
#set sanger_reads = []
#for $i, $input_file in enumerate($arf.sanger,1)
#set $ext = $input_file.ext.replace('fastqsanger', 'fastq')
#set $fname = 'file' + str($i) + '.' + $ext
#set $file_path = 'sanger_reads/' + $fname
ln -s '$input_file' '$file_path' &&
$sanger_reads.append($file_path)
#end for
#end if
#if $arf.trusted_contigs
mkdir -p trusted_contigs &&
#set trusted_contigs = []
#for $i, $input_file in enumerate($arf.trusted_contigs,1)
#set $ext = $input_file.ext.replace('fastqsanger', 'fastq')
#set $fname = 'file' + str($i) + '.' + $ext
#set $file_path = 'trusted_contigs/' + $fname
ln -s '$input_file' '$file_path' &&
$trusted_contigs.append($file_path)
#end for
#end if
#if $arf.untrusted_contigs
mkdir -p untrusted_contigs &&
#set untrusted_contigs = []
#for $i, $input_file in enumerate($arf.untrusted_contigs,1)
#set $ext = $input_file.ext.replace('fastqsanger', 'fastq')
#set $fname = 'file' + str($i) + '.' + $ext
#set $file_path = 'untrusted_contigs/' + $fname
ln -s '$input_file' '$file_path' &&
$untrusted_contigs.append($file_path)
#end for
#end if
#if $arf.assembly_graph
mkdir -p assembly_graphs &&
#set assembly_graphs = []
#for $i, $input_file in enumerate($arf.assembly_graph,1)
#set $ext = $input_file.ext.replace('gfa1', 'gfa')
#set $fname = 'file' + str($i) + '.' + $ext
#set $file_path = 'assembly_graphs/' + $fname
ln -s '$input_file' '$file_path' &&
$assembly_graphs.append($file_path)
#end for
#end if
export OMP_THREAD_LIMIT=\${GALAXY_SLOTS:-4} &&
## run
plasmidspades.py
$operation_mode
-o 'output'
-t \${GALAXY_SLOTS:-4}
-m \$((\${GALAXY_MEMORY_MB:-8192}/1024))
--tmp-dir \${TMPDIR}
#if $singlePaired.sPaired == "single"
#for $read in $file_paths1
--s $library '${read}'
#end for
#else if $singlePaired.sPaired == "paired_interlaced"
#for $read in $file_paths1
--${singlePaired.type_paired}-12 $library '${read}'
--${singlePaired.type_paired}-or $library $singlePaired.orientation
#end for
#else
#for $read in $fw_reads1
--${singlePaired.type_paired}-1 $library '${read}'
#end for
#for $read in $rv_reads1
--${singlePaired.type_paired}-2 $library '${read}'
--${singlePaired.type_paired}-or $library $singlePaired.orientation
#end for
#end if
#if $additional_reads.selector == 'true'
#if $additional_reads.selector == 'true' and $additional_reads.library_number == 'false'
#set $library += 1
#end if
#if $additional_reads.singlePaired.sPaired == "single"
#for $read in $file_paths2
--s $library '${read}'
#end for
#else if $additional_reads.singlePaired.sPaired == "paired_interlaced"
#for $read in $file_paths2
--${additional_reads.singlePaired.type_paired}-12 $library '${read}'
--${additional_reads.singlePaired.type_paired}-or $library $additional_reads.singlePaired.orientation
#end for
#else
#for $read in $fw_reads2
--${additional_reads.singlePaired.type_paired}-1 $library '${read}'
#end for
#for $read in $rv_reads2
--${additional_reads.singlePaired.type_paired}-2 $library '${read}'
--${additional_reads.singlePaired.type_paired}-or $library $additional_reads.singlePaired.orientation
#end for
#end if
#end if
## reads
#if $arf.nanopore
#for $read in $nanopore_reads
--nanopore $read
#end for
#end if
#if $arf.pacbio
#for $read in $pacbio_reads
--pacbio $read
#end for
#end if
#if $arf.sanger
#for $read in $sanger_reads
--sanger $read
#end for
#end if
#if $arf.trusted_contigs
#for $read in $trusted_contigs
--trusted-contigs $read
#end for
#end if
#if $arf.untrusted_contigs
#for $read in $untrusted_contigs
--untrusted-contigs $read
#end for
#end if
#if $arf.assembly_graph
#for $graph in $assembly_graphs
--assembly-graph $graph
#end for
#end if
## parameter
--cov-cutoff $cov_cond.cov_cutoff
#if $kmer_cond.kmer_sel != 'auto'
-k '$kmer_cond.manual'
#end if
#for $i in $mode_sel
$i
#end for
#if $phred_offset != 'auto'
--phred-offset $phred_offset
#end if
## postprocessing
#if 'cs' in $optional_output
&& (test -f 'output/contigs.fasta' && python '$__tool_directory__/write_tsv_script.py' < 'output/contigs.fasta' > '$out_cs' || echo 'No contigs.fasta.')
#end if
#if 'ss' in $optional_output
&& (test -f 'output/scaffolds.fasta' && python '$__tool_directory__/write_tsv_script.py' < 'output/scaffolds.fasta' > '$out_ss' || echo 'No scaffolds.fasta.')
#end if
| Functional tests |
| name | inputs | outputs | required files |
| Test-1 |
singlePaired|input: list:paired collection singlePaired|sPaired: paired_collection |
name: value name: value name: value name: value |
pl1.fq.gz pl2.fq.gz value |
| Test-2 |
singlePaired|input: list:paired collection singlePaired|sPaired: paired_collection cov_cond|cov_cutoff: auto phred_offset: 33 optional_output: ['ag', 'ags', 'cn', 'cp', 'cr', 'cs', 'l', 'sc', 'sp', 'ss'] |
name: value name: value name: value name: value name: value name: value name: value name: value name: value |
pl1.fq.gz pl2.fq.gz value |
| Test-3 |
operation_mode: --only-assembler singlePaired|input1: ecoli_1K.fastq.gz singlePaired|sPaired: paired_interlaced additional_reads|singlePaired|input: list:paired collection additional_reads|singlePaired|type_paired: hqmp additional_reads|singlePaired|orientation: rf additional_reads|singlePaired|sPaired: paired_collection additional_reads|selector: true mode_sel: --careful optional_output: l |
name: value |
ecoli_1K.fastq.gz pl1.fq.gz pl2.fq.gz value |
| Test-4 |
singlePaired|input: list:paired collection singlePaired|sPaired: paired_collection mode_sel: --careful optional_output: l |
name: value |
pl1.fq.gz pl2.fq.gz value |
| Test-5 |
operation_mode: --only-error-correction singlePaired|input: list:paired collection singlePaired|sPaired: paired_collection optional_output: ['cr', 'l'] |
name: value |
pl1.fq.gz pl2.fq.gz value |
| Test-6 |
operation_mode: --only-error-correction singlePaired|input: list:paired collection singlePaired|sPaired: paired_collection optional_output: ['cr', 'l'] |
name: value |
pl1.fq.gz pl2.fq.gz value |
| Test-7 |
singlePaired|input: list:paired collection singlePaired|sPaired: paired_collection arf|nanopore: ecoli_1K.fastq.gz arf|pacbio: ecoli_1K.fastq.gz arf|sanger: ecoli_1K.fastq.gz arf|untrusted_contigs: ecoli_1K.fasta.gz mode_sel: --careful optional_output: ['cr', 'l'] |
name: value |
pl1.fq.gz pl2.fq.gz ecoli_1K.fastq.gz ecoli_1K.fasta.gz value |