view 6_merge_vcfs.xml @ 60:0b0e3e4376a7

planemo upload
author jpayne
date Mon, 24 Jun 2024 05:10:35 -0400
parents 49d672730d3e
children 2af5e948dd5c
line wrap: on
line source
<tool id="merge_vcfs" name="6. Merge VCFs" version="1.0.1" profile="16.10">
    <description>into a multi-sample VCF with consensus SNPs</description>
    <requirements>
        <container type="docker">quay.io/biocontainers/mulled-v2-72d480da2f80e0804df2fc75273988c6dba1648d:f354c444b518b0ada8e031aa2984346e2f5d8837-0</container>
        <!-- <requirement type="package" version="1.9">bcftools</requirement>
        <requirement type="package" version="1.0.8">bzip2</requirement>
        <requirement type="package" version="2.2.1">snp-pipeline</requirement>
        <requirement type="package" version="0.2.6">tabix</requirement>
        <requirement type="package" version="1.9">htslib</requirement> -->
        <!-- <requirement type="package" version="3.6.8">python</requirement> -->
    </requirements>
    <command detect_errors="exit_code"><![CDATA[
        export LD_LIBRARY_PATH="\$CONDA_DEFAULT_ENV/lib" &&
        python $__tool_directory__/snp-wind.py ./ -p "consensus.vcf"
            #for $vcf in $vcfs
                -n $vcf.element_identifier -f $vcf
            #end for
        > ./file
        && cat ./file
        && cfsan_snp_pipeline merge_vcfs ./file
    ]]></command>
    <inputs>
        <param type="data_collection" format="vcf" collection_type="list" name="vcfs" label="List of VCFs" />
    </inputs>
    <outputs>
        <data format="vcf" label="SNP matrix" name="snpmav" from_work_dir="snpma.vcf"/>
    </outputs>
    <tests>
        <test>
            <param name="vcfs">
                <collection type="list">
                    <element name="sample1" value="samples/sample1/consensus.vcf" />
                    <element name="sample2" value="samples/sample2/consensus.vcf" />
                    <element name="sample3" value="samples/sample3/consensus.vcf" />
                    <element name="sample4" value="samples/sample4/consensus.vcf" />
                </collection>
            </param>
            <output name="snpmav" value="snpma.vcf" lines_diff="4" />
        </test>
    </tests>
    <help><![CDATA[
        <a href="http://snp-pipeline.readthedocs.io/en/latest/index.html">http://snp-pipeline.readthedocs.io/en/latest/index.html</a>
    ]]></help>
    <citations>
        <citation type="doi">10.7717/peerj-cs.20</citation>
    </citations>
</tool>