Mercurial > repos > iuc > flair_correct
diff flair_correct.xml @ 0:6927379c9ede draft
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/flair commit e6e3295a4e0168d80b7966684bc21d2863bed108"
author | iuc |
---|---|
date | Fri, 27 Nov 2020 21:55:45 +0000 |
parents | |
children | c784170f3b5e |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/flair_correct.xml Fri Nov 27 21:55:45 2020 +0000 @@ -0,0 +1,137 @@ +<tool id="flair_correct" name="FLAIR correct" version="@TOOL_VERSION@" profile="20.01"> + <description>corrects misaligned splice sites using genome annotations</description> + + <macros> + <import>flair_macros.xml</import> + </macros> + + <expand macro="requirements" /> + <expand macro="version_command" /> + + <command detect_errors="exit_code"><![CDATA[ + +@PREPARE_REF@ + +flair.py correct + +########### +## Input ## +########### + +-q '$input_query' +-g reference.fa +-f '$input_gtf' + +#if $input_shortread: + -j '$input_shortread' +#end if + +######################## +## Additional Options ## +######################## + +$additional_options.strand +-w $additional_options.window + +######### +## END ## +######### + + ]]></command> + <inputs> + <param name="input_query" argument="-q" type="data" format="bed12" label="Uncorrected Bed12 file"/> + <expand macro="reference_interface" /> + <param name="input_gtf" argument="-f" type="data" format="gtf" label="GTF annotation file"/> + <param name="input_shortread" optional="true" argument="-j" type="data" format="bed" label="Splice junction BED file" /> + + <!-- Additional Options --> + <section name="additional_options" title="Additional Options"> + <param name="strand" argument="-n" type="boolean" checked="false" truevalue="-n" falsevalue="" label="Strand Consistency" help="Keep the strand of a read consistent after correction."/> + <param name="window" argument="-w" type="integer" min="1" value="10" label="Window Size" help="Window size for correcting splice sites (Default=10)" /> + </section> + </inputs> + + + <outputs> + <data name="outfile_1" format="bed12" from_work_dir="flair_all_corrected.bed" label="${tool.name} on ${on_string}: Corrected Reads" /> + <data name="outfile_2" format="bed12" from_work_dir="flair_all_inconsistent.bed" label="${tool.name} on ${on_string}: Inconsistent Reads" /> + </outputs> + + <tests> + <test expect_num_outputs="2"> + <param name="input_query" ftype="bed12" value="chrM.bed12" /> + <param name="ref_selector_genome" value="history" /> + <param name="reffile" ftype="fasta" value="chrM.fa" /> + <param name="input_gtf" ftype="gtf" value="UCSC_Main_on_Human_knownGene_region_chrM.gtf" /> + <output name="outfile_1" ftype="bed12" file="flair_all_corrected.bed" /> + <output name="outfile_2" ftype="bed12" file="flair_all_inconsistent.bed" /> + </test> + <!-- Test with cached genome --> + <test expect_num_outputs="2"> + <param name="input_query" ftype="bed12" value="chrM.bed12" /> + <param name="ref_selector_genome" value="cached" /> + <param name="reffile" value="chrM" /> + <param name="input_gtf" ftype="gtf" value="UCSC_Main_on_Human_knownGene_region_chrM.gtf" /> + <output name="outfile_1" ftype="bed12" file="flair_all_corrected.bed" /> + <output name="outfile_2" ftype="bed12" file="flair_all_inconsistent.bed" /> + </test> + </tests> + + <help><![CDATA[ + +.. class:: infomark + +**What it does** + +------------------- + +@description@ + +**flair correct** +Corrects misaligned splice sites using genome annotations and/or short-read splice junctions. Based on common user issues we have encountered, for flair-correct to run properly, please ensure/note that (1) the genome annotation and genome sequences are compatible, (2) gtf is preferred over gff for annotation and annotations that do not split single exons into multiple entries are ideal. + +------------------- + +**Inputs** + +------------------- + +(1) Uncorreced bed12 file. +(2) FASTA file of the reference genome. +(3) GTF annotation file. +(4) BED format splice junctions from short-read sequencing or GTF annotation file. + +----------- + +**Outputs** + +----------- + +(1) bed12 of corrected reads, +(2) bed12 of reads that weren't able to be corrected, +(3) psl of corrected reads if the -c chromsizes file is provided. + +Either (1) or (3) can be supplied to flair-collapse as the query. + +-------------------- + +**More Information** + +-------------------- + +See the excellent `FLAIR documentation`_ + +.. _`FLAIR documentation`: https://github.com/BrooksLabUCSC/flair + + +-------------------- + +**Galaxy Wrapper Development** + +-------------------- + +@citation@ + + ]]></help> + <expand macro="citations" /> +</tool>