view pep_pointer.xml @ 3:a6282baa8c6f draft default tip

planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/pep_pointer commit 494bc6dd87b9a6e2af40cb32aa5d2ee6e9bfebfc
author galaxyp
date Mon, 20 Jun 2022 13:59:52 +0000
parents 073a2965e3b2
children
line wrap: on
line source

<tool id="pep_pointer" name="PepPointer" version="0.1.3+galaxy1">
    <description>classify genomic location of peptides</description>
    <requirements>
        <requirement type="package" version="3.7.9">python</requirement>
    </requirements>
    <command detect_errors="aggressive"><![CDATA[
        #if $gtf_input.gtf_source == "cached":
            python '$__tool_directory__/pep_pointer.py' '$gtf_input.gtf.fields.path' '$bed' '$classified'
        #else
            python '$__tool_directory__/pep_pointer.py' '$gtf_input.gtf' '$bed' '$classified'
        #end if
    ]]></command>
    <inputs>
        <conditional name="gtf_input">
            <param type="select" name="gtf_source" label="Choose the source of the GTF file">
                <option value="cached" selected="true">Locally installed</option>
                <option value="history">From history</option>
            </param>
            <when value="cached">
                <param name="gtf" type="select" format="gtf" label="GTF file with the genome of interest">
                    <options from_data_table="gff_gene_annotations"/>
                </param>
            </when>
            <when value="history">
                <param type="data" name="gtf" format="gtf" label="GTF file with the genome of interest"/>
            </when>
        </conditional>
        <param type="data" name="bed" format="bed" label="BED file with chromosomal coordinates of peptide"/>
    </inputs>
    <outputs>
        <data format="tabular" name="classified" label="${tool.name} on ${on_string}">
            <actions>
                <action name="column_names" type="metadata" default="chrom,chromStart,chromStop,name,score,strand,annotation"/>
            </actions>
        </data>
    </outputs>
    <tests>
        <test>
            <param name="gtf_source" value="history"/>
            <param name="gtf" value="mus17.gtf"/>
            <param name="bed" value="novel_peptides_17.bed"/>
            <output name="classified" file="classified_novel_peptides.txt"/>
        </test>
    </tests>
    <help><![CDATA[
        **PepPointer**

        Given chromosomal locations of peptides in a BED file, PepPointer classifies them as CDS, UTR, exon, intron, or intergene. 
    ]]></help>
    <citations>
      <citation type="bibtex">
@misc{peppointer,
    author={Kumar, Praveen},
    year={2017},
    title={PepPointer}
}
      </citation>
    </citations>
</tool>