view aacoverage.xml @ 8:9def47f3c1e4 draft

planemo upload for repository https://github.com/phac-nml/quasitools commit 940b463cac33438233bc7a8a1695ca6d34b31a35
author nml
date Tue, 06 Aug 2019 08:50:28 -0400
parents dcd43b402eb3
children 18aad692772a
line wrap: on
line source

<tool id="aacoverage" name="Amino Acid Coverage" version="0.7.0">
    <description>Builds an aa census and returns its coverage</description>
    <requirements>
          <requirement type="package" version="0.7.0">quasitools</requirement>
    </requirements>
    <command detect_errors="exit_code"><![CDATA[

        ln -f -s ${input_bam.metadata.bam_index} ${input_bam}.bai &&

        quasitools aacoverage $input_bam $ref_file $input_genes -o output.csv

    ]]></command>
    <inputs>
        <param name="input_bam" type="data" format="bam" optional="false" label="Bam file" />
        <param name="ref_file" type="data" format="fasta" optional="false" label="Reference file" />
        <param name="input_genes" type="data" format="bed" optional="false" label="Gene file" />
    </inputs>
    <outputs>
        <data format="csv" name="output" from_work_dir="output.csv" />
    </outputs>
    <tests>
        <test>
            <param name="input_bam" value="align.bam" />
            <param name="ref_file" value="hxb2_pol.fas" />
            <param name="input_genes" ftype="bed" value="hxb2_pol.bed" />
            <output name="output" >
                <assert_contents>
                    <has_text text="frame: 0" />
                    <has_text text="1,0" />
                    <has_text text="948,1" />
                </assert_contents>
            </output>
        </test>
    </tests>
    <help><![CDATA[

Amino Acid Coverage
===================

Builds an amino acid census and returns its coverage.

**Output**

A file with one entry per line with the AA position and the coverage at the position.

    ]]></help>
    <citations>
		<citation type="bibtex">
			@misc{GitHubquasitoolsaacoverage,
			title = {quasitools aacoverage},
			publisher = {phac-nml},
			journal = {GitHub repository},
			url = {https://github.com/phac-nml/quasitools},
			}
		</citation>
    </citations>
</tool>