Mercurial > repos > yating-l > gbtofasta
annotate gbToFasta.xml @ 2:cabe1df9d31a draft
planemo upload commit 56d60a9f66cc04ee92cbc568dd40b4353dab8b62-dirty
| author | yating-l |
|---|---|
| date | Fri, 03 Feb 2017 13:21:33 -0500 |
| parents | da5fba0ed4fc |
| children | 894d96efad6d |
| rev | line source |
|---|---|
| 0 | 1 <?xml version="1.0"?> |
| 2 <tool id="gbtofasta" name="gbToFasta" version="1.0"> | |
| 3 <description>Convert GenBank records to fasta and Create table with coding regions information for each mRNA record</description> | |
| 4 <requirements> | |
| 5 <requirement type="package" version="1.0">ucsc_tools_340_for_BLAT</requirement> | |
| 6 </requirements> | |
| 7 <command detect_errors="exit_code"><![CDATA[ | |
| 1 | 8 gbToFaRa |
| 0 | 9 /dev/null |
| 1 | 10 '${outputfa}' |
| 11 outputra | |
| 12 outputta | |
| 0 | 13 '${gbfile}' |
| 14 #if $cds == "yes" | |
| 15 && raToTab | |
| 16 -cols=acc,cds | |
| 1 | 17 outputra |
| 18 '${outputcds}' | |
| 0 | 19 #end if |
| 20 ]]></command> | |
| 21 <inputs> | |
| 22 <param type="data" name="gbfile" format="genbank" /> | |
| 23 <param type="select" name="cds" label="Create table with coding regions information for each mRNA record" > | |
| 24 <option value="yes">Yes</option> | |
| 25 <option value="no">No</option> | |
| 26 </param> | |
| 27 | |
| 28 </inputs> | |
| 29 <outputs> | |
| 1 | 30 <data format="fasta" name="outputfa" label="${tool.name} on ${on_string}:fasta"></data> |
|
2
cabe1df9d31a
planemo upload commit 56d60a9f66cc04ee92cbc568dd40b4353dab8b62-dirty
yating-l
parents:
1
diff
changeset
|
31 <data format="tabular" name="outputcds" label="${tool.name} on ${on_string}:cds"> |
| 0 | 32 <filter>cds == "yes"</filter> |
| 33 </data> | |
| 34 </outputs> | |
| 35 <tests> | |
| 36 <test> | |
| 37 <param name="gbfile" value="Gallus_gallus_RefSeq.gb" /> | |
| 38 <param name="cds" value="yes" /> | |
| 1 | 39 <output name="outputfa" value="Gallus_gallus_RefSeq.fa" /> |
| 40 <output name="outputcds" value="Gallus_gallus_RefSeq.cds" /> | |
| 0 | 41 </test> |
| 42 <test> | |
| 43 <param name="gbfile" value="Gallus_gallus_RefSeq.gb" /> | |
| 44 <param name="cds" value="no" /> | |
| 1 | 45 <output name="outputfa" value="Gallus_gallus_RefSeq.fa" /> |
| 0 | 46 </test> |
| 47 </tests> | |
| 48 <help> | |
| 49 <![CDATA[ | |
| 50 gbToFasta | |
| 51 ========= | |
| 52 | |
| 53 Convert GenBank records to fasta | |
| 54 --------------------------------- | |
| 55 | |
| 56 gbToFaRa - Convert GenBank flat format file to an fa file containing | |
| 57 the sequence data, an ra file containing other relevant info and | |
| 58 a ta file containing summary statistics. | |
| 59 usage: | |
| 60 gbToFaRa filterFile faFile raFile taFile genBankFile(s) | |
| 61 where filterFile is definition of which records and fields | |
| 62 use /dev/null if you want no filtering. | |
| 63 | |
| 1 | 64 gbToFaRa /dev/null gbfile.fa \ |
| 65 gbfile.ra gbfile.ta gbfile | |
| 0 | 66 |
| 67 Create table with coding regions information for each mRNA record | |
| 68 ----------------------------------------------------------------- | |
| 69 raToTab - Convert ra file to table. | |
| 1 | 70 raToTab -cols=acc,cds gbfile.ra gbfile.cds |
| 0 | 71 |
| 72 Source code: | |
| 73 ============ | |
| 74 | |
| 75 http://hgdownload.cse.ucsc.edu/admin/exe/ | |
| 76 | |
| 1 | 77 ]]></help> |
| 78 <citations> | |
| 79 <citation type="bibtex">@article{kent2002blat, | |
| 80 title={BLAT—the BLAST-like alignment tool}, | |
| 81 author={Kent, W James}, | |
| 82 journal={Genome research}, | |
| 83 volume={12}, | |
| 84 number={4}, | |
| 85 pages={656--664}, | |
| 86 year={2002}, | |
| 87 publisher={Cold Spring Harbor Lab} | |
| 88 }</citation> | |
| 89 </citations> | |
| 90 | |
| 0 | 91 </tool> |
| 92 | |
| 93 | |
| 94 | |
| 95 | |
| 96 |
