Mercurial > repos > yating-l > gbtofasta
changeset 5:e195691d3e71 draft
planemo upload commit 10faac43ed16e0bd479f2e9a7d76ccd08b2a5af8-dirty
| author | yating-l |
|---|---|
| date | Thu, 28 Sep 2017 16:25:57 -0400 |
| parents | 3568235c44bf |
| children | 97499dcb77fa |
| files | README.rst gbToFasta.xml |
| diffstat | 2 files changed, 42 insertions(+), 17 deletions(-) [+] |
line wrap: on
line diff
--- a/README.rst Tue Aug 08 17:53:39 2017 -0400 +++ b/README.rst Thu Sep 28 16:25:57 2017 -0400 @@ -1,6 +1,6 @@ gbToFasta ========================================================== -Galaxy wrapper for UCSC tools gbToFasta and raToTab. Convert GenBank records to fasta and create table with coding regions information for each mRNA record. +Galaxy wrapper for UCSC tools gbToFasta and raToTab. Convert GenBank records to fasta, create TRIX index, and create table with coding regions information for each mRNA record. gbToFasta --------- @@ -18,10 +18,21 @@ raToTab -------- -raToTab - Create table with coding regions information for each mRNA record + +* Create table with coding regions information for each mRNA record + + raToTab -cols=acc,cds gbfile.ra gbfile.cds + + +* Create TRIX index -usage: - raToTab -cols=acc,cds gbfile.ra gbfile.cds + #. Create search index and metadata + + raToTab -cols=acc,def gbfile.ra gbfile.info + + #. Create TRIX index + + ixIxx gbfile.info gbfile.ix gbfile.ixx Source code: ============
--- a/gbToFasta.xml Tue Aug 08 17:53:39 2017 -0400 +++ b/gbToFasta.xml Thu Sep 28 16:25:57 2017 -0400 @@ -1,5 +1,5 @@ <?xml version="1.0"?> -<tool id="gbtofasta" name="gbToFasta" version="1.0"> +<tool id="gbtofasta" name="gbToFasta" version="2.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> @@ -11,16 +11,6 @@ outputra outputta '${gbfile}' - && - raToTab - -cols=acc,def - outputra - outputinfo - && - ixIxx - outputinfo - ${index_ix} - index_ixx #if $cds == "yes" && raToTab @@ -29,21 +19,40 @@ cds_file && python $__tool_directory__/filter.py -f cds_file -o '${outputcds}' #end if + + #if $trix == "yes" + && raToTab + -cols=acc,def + outputra + outputinfo + && ixIxx + outputinfo + ${index_ix} + ${index_ixx} + #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> + <param type="select" name="trix" label="Create a Trix index" > + <option value="yes">Yes</option> + <option value="no">No</option> </param> - </inputs> <outputs> <data format="fasta" name="outputfa" label="${tool.name} on ${on_string}:fasta"></data> - <data format="txt" name="index_ix" label="${tool.name} on ${on_string}:txt"></data> <data format="tabular" name="outputcds" label="${tool.name} on ${on_string}:cds"> <filter>cds == "yes"</filter> </data> + <collection name="trix_index" type="list" label="Trix index"> + <filter>trix == "yes"</filter> + <data name="index_ix" format="txt" from_work_dir="output.ix"/> + <data name="index_ixx" format="txt" from_work_dir="output.ixx" /> + </collection> </outputs> <tests> <test> @@ -84,6 +93,11 @@ raToTab - Convert ra file to table. raToTab -cols=acc,cds gbfile.ra gbfile.cds +Create a Trix index with coding regions information +--------------------------------------------------- +ixIxx - Create indices for simple line-oriented file of format + + Source code: ============
