diff gbToFasta.xml @ 0:e51fb8c5bb1c draft

planemo upload
author yating-l
date Thu, 02 Feb 2017 18:30:34 -0500
parents
children da5fba0ed4fc
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gbToFasta.xml	Thu Feb 02 18:30:34 2017 -0500
@@ -0,0 +1,96 @@
+<?xml version="1.0"?>
+<tool id="gbtofasta" name="gbToFasta" version="1.0">
+    <description>Convert GenBank records to fasta and Create table with coding regions information for each mRNA record</description>
+    <requirements>
+      <requirement type="package" version="1.0">ucsc_tools_340_for_BLAT</requirement>
+    </requirements>
+    <command detect_errors="exit_code"><![CDATA[
+      gbToFaRa
+            /dev/null
+            '${output_fa}'
+            output_ra
+            output_ta
+            '${gbfile}'
+      #if $cds == "yes"
+            && raToTab
+                  -cols=acc,cds
+                  output_ra
+                  '${output_cds}'
+      #end if
+
+]]></command>
+      <inputs>
+            <param type="data" name="gbfile" format="genbank" />
+            <param type="select" name="cds" label="Create table with coding regions information for each mRNA record" >
+                  <option value="yes">Yes</option>
+                  <option value="no">No</option>
+            </param>
+                  
+      </inputs>
+      <outputs>
+            <data format="fasta" name="output_fa" label="${gbfile.name}:fasta"></data>
+            <data format="fasta" name="output_cds" label="${gbfile.name}:cds">
+                  <filter>cds == "yes"</filter>
+            </data>
+      </outputs>
+  <tests>
+      <test>
+            <param name="gbfile" value="Gallus_gallus_RefSeq.gb" />
+            <param name="cds" value="yes" />
+            <output name="output_fa" value="Gallus_gallus_RefSeq.fa" />
+            <output name="output_cds" value="Gallus_gallus_RefSeq.cds" />
+      </test>
+      <test>
+            <param name="gbfile" value="Gallus_gallus_RefSeq.gb" />
+            <param name="cds" value="no" />
+            <output name="output_fa" value="Gallus_gallus_RefSeq.fa" />
+      </test>
+  </tests> 
+  <help>
+        <![CDATA[
+gbToFasta
+=========
+
+Convert GenBank records to fasta
+---------------------------------
+
+gbToFaRa - Convert GenBank flat format file to an fa file containing
+the sequence data, an ra file containing other relevant info and
+a ta file containing summary statistics.
+usage:
+   gbToFaRa filterFile faFile raFile taFile genBankFile(s)
+where filterFile is definition of which records and fields
+use /dev/null if you want no filtering.
+
+gbToFaRa /dev/null ${gbfile.fa} \
+  ${gbfile.ra} ${gbfile.ta} ${gbfile}
+
+Create table with coding regions information for each mRNA record
+-----------------------------------------------------------------
+raToTab - Convert ra file to table.
+raToTab -cols=acc,cds ${gbfile.ra} ${gbfile.cds}
+
+Source code:
+============
+
+http://hgdownload.cse.ucsc.edu/admin/exe/
+
+]]></help>  
+<citations>
+      <citation type="bibtex">@article{kent2002blat,
+  title={BLAT—the BLAST-like alignment tool},
+  author={Kent, W James},
+  journal={Genome research},
+  volume={12},
+  number={4},
+  pages={656--664},
+  year={2002},
+  publisher={Cold Spring Harbor Lab}
+      }</citation>
+</citations> 
+</tool>
+             
+            
+
+               
+    
\ No newline at end of file