view cfsan_snp_pipeline_call_sites.xml @ 1:9ab66ea409ff draft

Uploaded
author greg
date Tue, 21 Nov 2023 22:08:55 +0000
parents 02ab4f93ebd0
children 991fbae39ee6
line wrap: on
line source

<tool id="call_sites" name="CFSAN SNP pipeline: call sites" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
    <description>of high-confidence SNPs</description>
    <macros>
        <import>macros.xml</import>
    </macros>
    <expand macro="requirements"/>
    <command detect_errors="exit_code"><![CDATA[
    cp '$reference' 'reference.fasta' &&
    samtools faidx 'reference.fasta' &&  
    picard MarkDuplicates INPUT='$input' OUTPUT=/dev/stdout METRICS_FILE='$metrics' | samtools mpileup -f ./reference.fasta - -o '$pileup' &&
    varscan mpileup2snp '$pileup' --min_var-freq 0.90 --output-vcf 1 > '$calls' 
    ]]></command>
    <inputs>
        <param name="input" label="Read alignment to reference" type="data" format="bam"/>
        <param name="reference" label="FASTA Reference from your history" type="data" format="fasta"/>
    </inputs>
    <outputs>
        <data name="calls" label="Call Sites (unfiltered SNPs)" format="vcf"/>
        <data name="pileup" label="Call Sites (pileup)" format="pileup"/>
        <data name="metrics" label="Call sites (Picard metrics)" format="txt"/>
    </outputs>
    <tests>
        <test>
            <param name="reference" value="lambda_virus.fasta"/>
            <param name="input" value="reads.bam"/>
            <output name="calls" ftype="vcf">
                <assert_contents>
                    <has_size value="9976" delta="100"/>
                </assert_contents>
            </output>
            <output name="pileup" ftype="pileup">
                <assert_contents>
                    <has_size value="4259620" delta="100"/>
                </assert_contents>
            </output>
        </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>
    <expand macro="citations"/>
</tool>