Mercurial > repos > erasmus-medical-center > gfa_to_fa
view gfa_to_fa.xml @ 2:a54fa2c9503f draft default tip
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/gfa_to_fa commit a00033a6cd8deb6b4a35ec1f4adb20dcc83cd1a1
author | erasmus-medical-center |
---|---|
date | Fri, 20 Jul 2018 08:19:46 -0400 |
parents | 810d464f9359 |
children |
line wrap: on
line source
<tool id="gfa_to_fa" name="GFA to Fasta" version="0.1.0"> <description>Convert GFA files to Fasta </description> <command detect_errors="exit_code"><![CDATA[ cat '$in_gfa' | python $convert > '$out_fa' ]]></command> <configfiles> <configfile name="convert"><![CDATA[ from __future__ import print_function import sys for line in sys.stdin: if line.startswith("S"): l,h,s,x = line.strip().split() print(">" + h) print(s) ]]></configfile> </configfiles> <inputs> <param name="in_gfa" type="data" format="tabular" label="Input GFA file" /> </inputs> <outputs> <data name="out_fa" format="fasta" label="${tool.name} on ${on_string}: Fasta file" /> </outputs> <tests> <test> <param name="in_gfa" value="test.gfa"/> <output name="out_fa" file="out.fa"/> </test> </tests> <help><![CDATA[ gfa_to_fa converts a GFA file to a Fasta File. The column two from the GFA file is used as sequence header. ]]></help> </tool>