Mercurial > repos > lldelisle > fromgtftobed12
view fromgtfTobed12.xml @ 0:418e4d0fe0bd draft
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
author | lldelisle |
---|---|
date | Fri, 04 Nov 2022 15:37:12 +0000 |
parents | |
children | 6fd4b3b90220 |
line wrap: on
line source
<tool id="fromgtfTobed12" name="fromgtftobed12" version="0.11.1+galaxy0"> <description> Convert a gtf to a bed12.</description> <requirements> <requirement type="package" version="0.11.1">gffutils</requirement> </requirements> <stdio> <!-- Anything other than zero is an error --> <exit_code range="1:" /> <exit_code range=":-1" /> <!-- In case the return code has not been set propery check stderr too --> <regex match="Error:" /> <regex match="Exception:" /> </stdio> <command> <![CDATA[ python3 $__tool_directory__/fromgtfTobed12.py $useGene $mergeTranscripts $ucscformat --output $output $input ]]> </command> <inputs> <param name="input" multiple="false" type="data" format="gtf" label="Select the gtf to convert."/> <param argument="--useGene" type="boolean" checked="False" truevalue="--useGene" falsevalue="" label="Uses the gene name instead of the transcript name."/> <param name="mergeTranscripts" type="select" label="Do you want to merge all transcripts of a gene in a single line?"> <option value="" selected="true">No</option> <option value="--mergeTranscripts">Yes</option> <option value="--mergeTranscriptsAndOverlappingExons">Yes and merge overlapping exons</option> </param> <param argument="--ucscformat" type="boolean" checked="True" truevalue="--ucscformat" falsevalue="" label="If you want that all chromosome names begin with 'chr'."/> </inputs> <outputs> <data format="bed" name="output" label="$input.name as bed12"/> </outputs> <tests> <test> <param name="input" value="Homo_sapiens.GRCh38.95_491firstLines.gtf.gz"/> <param name="ucscformat" value="--ucscformat"/> <output name="output" file="test.bed"/> </test> <test> <param name="input" value="Homo_sapiens.GRCh38.95_491firstLines.gtf.gz"/> <param name="ucscformat" value="--ucscformat"/> <param name="useGene" value="--useGene"/> <output name="output" file="testWithGenes.bed"/> </test> <test> <param name="input" value="Homo_sapiens.GRCh38.95_491firstLines.gtf.gz"/> <param name="mergeTranscripts" value="--mergeTranscripts"/> <param name="useGene" value="--useGene"/> <param name="ucscformat" value=""/> <output name="output" file="testMergeNotUCSC.bed"/> </test> <test> <param name="input" value="Homo_sapiens.GRCh38.95_491firstLines.gtf.gz"/> <param name="mergeTranscripts" value="--mergeTranscriptsAndOverlappingExons"/> <param name="useGene" value="--useGene"/> <param name="ucscformat" value=""/> <output name="output" file="testMergeExons.bed"/> </test> </tests> <help><![CDATA[ This tool uses gffutils to convert gtf to bed12. One line per transcript. It will use as names transcript_name or gene_name when available. ]]> </help> <citations> <citation type="bibtex">@online{gffutils, url = {https://pythonhosted.org/gffutils/contents.html} } </citation> </citations> </tool>