Mercurial > repos > cjav > sample
changeset 0:ce82ef822782 draft
Initial release.
author | cjav |
---|---|
date | Wed, 09 Oct 2013 16:33:48 -0400 |
parents | |
children | c72bbd681253 |
files | ngs-tools_sample.xml tool_dependencies.xml |
diffstat | 2 files changed, 70 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ngs-tools_sample.xml Wed Oct 09 16:33:48 2013 -0400 @@ -0,0 +1,64 @@ +<tool id="ngs-tools_sample" name="Sample (ngs-tools)" version="1.0.0"> + <description></description> + <requirements> + <requirement type="package" version="0.1.7">ngs-tools</requirement> + </requirements> + <command> + ngs-tools sample + --input-format $input_format.format + --sample-size $size + --output $output_file + #if str($input_format.paired.paired_selector) == "True" + --output-pair $output_file_pair + #end if + $input_format.paired.input_file + #if str($input_format.paired.paired_selector) == "True" + $input_format.paired.input_file_pair + #end if + </command> + <inputs> + <conditional name="input_format"> + <param name="format" type="select" label="Input format"> + <option value="fastq" selected="true">Fastq</option> + </param> + <when value="fastq"> + <conditional name="paired"> + <param name="paired_selector" type="select" label="Paired data?"> + <option value="True">Yes</option> + <option value="False" selected="true">No</option> + </param> + <when value="True"> + <param name="input_file" type="data" format="fastq" label="FASTQ File to sample from" /> + <param name="input_file_pair" type="data" format="fastq" label="FASTQ Paired File to sample from" /> + </when> + <when value="False"> + <param name="input_file" type="data" format="fastq" label="FASTQ File to sample from" /> + </when> + </conditional> + </when> + </conditional> + <param name="size" type="integer" size="6" value="100" label="Number of records to sample" /> + </inputs> + <outputs> + <data name="output_file" format="input" /> + <data name="output_file_pair" format="input"> + <filter>input_format['paired']['paired_selector'] == "True"</filter> + </data> + </outputs> +<help> + +**What it does** + +This tool samples a random number of records from the input file(s). Supports +paired data assuming paired files are in sync. + +Supported formats: FASTQ. + +-------- + +This tool is based on `ngs-tools`__ by Carlos Borroto <carlos.borroto@gmail.com>. + + .. __: https://github.com/cjav/ngs-tools/ + +</help> +</tool>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tool_dependencies.xml Wed Oct 09 16:33:48 2013 -0400 @@ -0,0 +1,6 @@ +<?xml version="1.0"?> +<tool_dependency> + <package name="ngs-tools" version="0.1.7"> + <repository changeset_revision="84a11fe35ee3" name="package_ngs_tools_0_1_7" owner="cjav" prior_installation_required="True" toolshed="http://toolshed.g2.bx.psu.edu" /> + </package> +</tool_dependency>