diff migmap.xml @ 0:b2f1cf977ca9 draft

planemo upload for repository https://github.com/mikessh/migmap commit 6d79114dd74ef2ee3071a100d1e8cd6d2df50caa
author iuc
date Sat, 30 Sep 2017 09:33:24 -0400
parents
children fbbe507e692b
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/migmap.xml	Sat Sep 30 09:33:24 2017 -0400
@@ -0,0 +1,112 @@
+<tool id="migmap" name="MiGMAP" version="1.0.2.1">
+    <description>mapper for full-length T- and B-cell repertoire sequencing
+    </description>
+    <requirements>
+        <requirement type="package" version="1.0.2">migmap</requirement>
+    </requirements>
+    <command detect_errors='exit_code'><![CDATA[
+export IGBLAST_PATH=\$(dirname \$(which igblastn)) &&
+#if $input.is_of_type('fasta') :
+    ln -s '$input' in.fa &&
+#else
+    ln -s '$input' in.fq &&
+#end if
+migmap 
+    $allow_incomplete
+    $allow_no_cdr3
+    $allow_noncanonical
+    $allow_noncoding
+    $all_alleles
+    $by_read
+    #if str($qual_threshold):
+        -q $qual_threshold
+    #end if
+    -p "\${GALAXY_SLOTS:-4}"
+    --data-dir "\${IGBLAST_PATH}/../share/igblast"
+    -S $species 
+    -R $receptor_list
+    --report '$report'
+    #if $input.is_of_type('fasta'): 
+        in.fa
+    #else
+        in.fq
+    #end if
+    '$output'
+    ]]></command>
+    <inputs>
+        <param type="data" name="input" format="fasta,fastq"/>
+        <param type="select" name="species" label="Species" value='human'>
+            <option value='human' selected='true'>Human</option>
+            <option value='mouse'>Mouse</option>
+            <option value='rat'>Rat</option>
+            <option value='rabbit'>Rabbit</option>
+            <option value='rhesus_monkey'>Rhesus monkey</option>
+        </param>
+        <param type="select" name="receptor_list" label="Receptor and Chain" multiple='true' value='IGH'>
+            <option value='IGH' selected='true'>IGH</option>
+            <option value='IGL'>IGL</option>
+            <option value='IGK'>IGK</option>
+            <option value='TRA'>TRA</option>
+            <option value='TRB'>TRB</option>
+            <option value='TRG'>TRG</option>
+            <option value='TRD'>TRD</option>
+        </param>
+        <param name="qual_threshold" type="integer" label="Quality Theshold" optional="true"
+           help="Threshold for average quality of mutations and N-regions of CDR3 (only relevant for fastq input)"/>
+        <param name="allow_incomplete" type="boolean" label="Report clonotypes with partial CDR3 mapping" checked="false"
+           truevalue="--allow-incomplete" falsevalue=""/>
+        <param name="all_alleles" type="boolean"
+           label="use all alleles during alignemt (default = only major (*01) alleles)" checked='false'
+           truevalue="--all-alleles" falsevalue=""/>
+        <param name="allow_no_cdr3" type="boolean" label="Report clonotypes with no CDR3" checked='false'
+           truevalue="--allow-no-cdr3" falsevalue=""/>
+        <param name="allow_noncanonical" type="boolean" label="Report clonotypes that have non-canonical CDR3"
+           checked='false'
+           truevalue="--allow-noncanonical" falsevalue=""/>
+        <param name="allow_noncoding" type="boolean" label="Report non-coding clonotypes (stop codon or frameshift)"
+           checked='false'
+           truevalue="--allow-noncoding" falsevalue=""/>
+        <param name="by_read" type="boolean" label="Report mapping details for each read" checked='false'
+           truevalue="--by-read" falsevalue=""/>
+    </inputs>
+    <outputs>
+        <data name="output" format="tabular"/>
+        <data name="report" format="txt"/>
+    </outputs>
+    <tests>
+        <test>
+            <param name="input" value="test_stop_codon.fa"/>
+            <param name="allow_noncoding" value="--allow-noncoding"/>
+            <param name="by_read" value="--by-read"/>
+            <param name="allow_noncanonical" value="--allow-noncanonical"/>
+            <param name="allow_no_cdr3" value="--allow-no-cdr3"/>
+            <param name="allow_incomplete" value="--allow-incomplete"/>
+            <param name="all_alleles" value="--all-alleles"/>
+            <output name="output" file="test_stop_codon.out"/>
+        </test>
+        <test>
+            <param name="allow_noncoding" value="--allow-noncoding"/>
+            <param name="by_read" value="--by-read"/>
+            <param name="input" value="test_out_of_frame.fa"/>
+            <output name="output" file="test_out_of_frame.out"/>
+        </test>
+    </tests>
+    <help><![CDATA[
+
+    This software is a smart wrapper for the IgBlast V-(D)-J mapping tool designed to facilitate analysis immune
+    receptor libraries profiled using high-throughput sequencing
+
+    ]]></help>
+    <citations>
+        <citation type="bibtex">
+          @misc{githubmigmap,
+          author = {Shugay, Mikhail},
+          year = {2015},
+          title = {migmap},
+          publisher = {GitHub},
+          journal = {GitHub repository},
+          url = {https://github.com/mikessh/migmap},
+          }
+        </citation>
+    </citations>
+</tool>