Mercurial > repos > mvdbeek > sra_tools
view fastq_dump.xml @ 0:9f74a22d2060 draft default tip
planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sra-tools commit 70fadb7e8972b1db550d0e067584930ce1ec8673-dirty
author | mvdbeek |
---|---|
date | Wed, 04 Nov 2015 06:57:32 -0500 |
parents | |
children |
line wrap: on
line source
<tool id="fastq_dump" name="Extract reads" version="1.2.4"> <description>in FASTQ/A format from NCBI SRA.</description> <macros> <import>sra_macros.xml</import> </macros> <expand macro="requirements"/> <command> <![CDATA[ ## Need to set the home directory to the current working directory, ## else the tool tries to write to home/.ncbi and fails when used ## with a cluster manager. export HOME=\$PWD; vdb-config --restore-defaults; #if $input.input_select == "file": fastq-dump --log-level fatal --accession '${input.file.name}' #else: vdb-config -s "/repository/user/main/public/root=\$PWD"; ## Do not use prefetch if region is specified, to avoid downloading ## the complete sra file. #if ( str( $adv.region ) == "" ) and ( str( $adv.minID ) == "" ) and ( str( $adv.maxID ) == "" ): ASCP_PATH=`which ascp`; ASCP_KEY=`dirname \$ASCP_PATH`/asperaweb_id_dsa.openssh; prefetch --ascp-path "\$ASCP_PATH|\$ASCP_KEY" $input.accession; #end if ## Duplicate vdb-config, in case settings changed between prefetch and ## dump command. vdb-config -s "/repository/user/main/public/root=\$PWD"; fastq-dump --accession "$input.accession" #end if --defline-seq '@\$sn[_\$rn]/\$ri' --stdout #if str( $adv.split ) == "yes": --split-spot #end if #if str( $adv.alignments ) == "aligned": --aligned #end if #if str( $adv.alignments ) == "unaligned": --unaligned #end if #if str( $adv.minID ) != "": --minSpotId "$adv.minID" #end if #if str( $adv.maxID ) != "": --maxSpotId "$adv.maxID" #end if #if str( $adv.minlen ) != "": --minReadLen "$adv.minlen" #end if #if str( $adv.readfilter ) != "": --read-filter "$adv.readfilter" #end if #if str( $adv.region ) != "": --aligned-region "$adv.region" #end if #if str( $adv.spotgroups ) != "": --spot-groups "$adv.spotgroups" #end if #if str( $adv.matepairDist ) != "": --matepair-distance "$adv.matepairDist" #end if #if $adv.clip == "yes": --clip #end if #if str( $outputformat ) == "fasta": --fasta #end if #if $input.input_select=="file": "$input.file" > "$output_file" #else: "$input.accession" > "$output_accession" #end if ]]> </command> <version_string>fastq-dump --version</version_string> <inputs> <expand macro="input_conditional"/> <param name="outputformat" type="select" label="select output format"> <option value="fastqsanger">fastq</option> <option value="fasta">fasta</option> </param> <section name="adv" title="Advanced Options" expanded="False"> <param name="minID" type="integer" label="minimum spot ID" optional="true"/> <param name="maxID" type="integer" label="maximum spot ID" optional="true"/> <param name="minlen" type="integer" label="minimum read length" optional="true"/> <param name="split" type="select" value="yes"> <label>split spot by read pairs</label> <option value="yes">Yes</option> <option value="no">No</option> </param> <expand macro="alignments"/> <expand macro="region"/> <expand macro="matepairDist"/> <param name="readfilter" type="select" value=""> <label>filter by value</label> <option value="">None</option> <option value="pass">pass</option> <option value="reject">reject</option> <option value="criteria">criteria</option> <option value="redacted">redacted</option> </param> <param name="spotgroups" type="text" label="filter by spot-groups" optional="true"/> <param name="clip" type="select" value="no"> <label>apply left and right clips</label> <option value="no">No</option> <option value="yes">Yes</option> </param> </section> </inputs> <outputs> <data format="fastq" name="output_accession" label="${input.accession}.${outputformat}"> <filter>input['input_select'] == "accession_number"</filter> <change_format> <when input="outputformat" value="fasta" format="fasta"/> </change_format> </data> <data format="fastq" name="output_file" label="${input.file.name}.${outputformat}"> <filter>input['input_select'] == "file"</filter> <change_format> <when input="outputformat" value="fasta" format="fasta"/> </change_format> </data> </outputs> <stdio> <exit_code range="127" level="fatal" description="Could not locate fastq-dump binary"/> </stdio> <tests> <test> <param name="input_select" value="accession_number"/> <param name="outputformat" value="fastqsanger"/> <param name="accession" value="SRR925743"/> <param name="maxID" value="5"/> <output name="output_accession" file="fastq_dump_result.fastq" ftype="fastq"/> </test> </tests> <help> This tool extracts reads from SRA archives using fastq-dump. The fastq-dump program is developed at NCBI, and is available at http://www.ncbi.nlm.nih.gov/Traces/sra/sra.cgi?view=software. @SRATOOLS_ATTRRIBUTION@ </help> </tool>