Mercurial > repos > charles_s_test > cs_test
changeset 0:3b5d78ca1756 draft default tip
planemo upload commit cd1454c40a43ad9da3d59e6ba8359318fc772c43-dirty
author | charles_s_test |
---|---|
date | Thu, 25 Jan 2018 17:37:40 -0500 |
parents | |
children | |
files | ectyper ectyper.xml |
diffstat | 2 files changed, 88 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ectyper Thu Jan 25 17:37:40 2018 -0500 @@ -0,0 +1,13 @@ +#!/usr/bin/env python + +""" + Shell program for ectyper +""" +import sys +import os +sys.path.append(os.path.join(os.path.dirname(__file__), "..")) + +from ectyper import ectyper + +if __name__=='__main__': + ectyper.run_program()
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ectyper.xml Thu Jan 25 17:37:40 2018 -0500 @@ -0,0 +1,75 @@ +<tool id="ectyper" name="ectyper" version="0.1"> + <requirements> + <requirement type="package" version="0.1">ectyper</requirement> + <requirement type="package" version="3.5">python</requirement> + </requirements> + <command detect_errors="exit_code"><![CDATA[ + #if $jobtype.select == "asm" + ln -s $jobtype.draft sample.fasta; + #else if $jobtype.select == "se" + ln -s $jobtype.fastq1 sample_1.fastq; + #else if $jobtype.select == "pe" + ln -s $jobtype.fastq1 sample_1.fastq; + ln -s $jobtype.fastq2 sample_2.fastq; + #end if + + $__tool_directory__/ectyper + #if $jobtype.select == "asm" + -i sample.fasta + #else if $jobtype.select == "se" + -i sample_1.fastq + #else if $jobtype.select == "pe" + -i sample_1.fastq sample_2.fastq + #end if + -d $percent_identity + -l $percent_length + -o "./"; cat ./output/output.csv > results.csv; + + ]]></command> + <inputs> + <conditional name="jobtype"> + <param name="select" type="select" label="Assembly or FASTQ Reads?"> + <option value="asm">Genome Assembly</option> + <option value="se">Single-End Reads</option> + <option value="pe">Paired-End Reads</option> + </param> + <when value="asm"> + <param name="draft" type="data" format="fasta" label="FASTA" /> + </when> + <when value="se"> + <param name="fastq1" type="data" format="fastq" label="FASTQ" /> + </when> + <when value="pe"> + <param name="fastq1" type="data" format="fastq" label="FASTQ" /> + <param name="fastq2" type="data" format="fastq" label="FASTQ" /> + </when> + </conditional> + + <param name="percent_identity" type="integer" label="Percent identity required for an allele match [default 90]" value="90" /> + <param name="percent_length" type="integer" label="Percent length required for an allele match [default 50]" value="50" /> + + </inputs> + <outputs> + <data format="csv" label="ectyper Results" name="${input.name}.ectperResults" from_work_dir="*.csv"/> + </outputs> + + <help><![CDATA[ + +**Usage: ectyper** + +**INPUT** + +A fasta assembly or single or paired end reads + +**PERCENTIDENTITY** + +Percentage of identity wanted to use against the database. From 0 to 100, default is 90%. + +**PERCENTLENGTH** + +Percentage of length wanted to use against the database. From 0 to 100, default is 50%. + +https://github.com/phac-nml/ecoli_serotyping + + ]]></help> +</tool>