0
|
1 <tool id="call_sites" name="CFSAN SNP pipeline: call sites" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
|
|
2 <description>of high-confidence SNPs</description>
|
|
3 <macros>
|
|
4 <import>macros.xml</import>
|
|
5 </macros>
|
|
6 <expand macro="requirements"/>
|
|
7 <command detect_errors="exit_code"><![CDATA[
|
|
8 cp '$reference' 'reference.fasta' &&
|
|
9 samtools faidx 'reference.fasta' &&
|
3
|
10 samtools view -b -F 4 '$input' -o ./unsorted.bam &&
|
|
11 samtools sort -o ./sorted.bam -O BAM ./unsorted.bam &&
|
|
12 picard MarkDuplicates INPUT=./sorted.bam OUTPUT=/dev/stdout METRICS_FILE='$metrics' | samtools mpileup -f ./reference.fasta - -o '$pileup' &&
|
0
|
13 varscan mpileup2snp '$pileup' --min_var-freq 0.90 --output-vcf 1 > '$calls'
|
|
14 ]]></command>
|
|
15 <inputs>
|
3
|
16 <param name="input" label="Read alignment to reference" type="data" format="sam"/>
|
0
|
17 <param name="reference" label="FASTA Reference from your history" type="data" format="fasta"/>
|
|
18 </inputs>
|
|
19 <outputs>
|
1
|
20 <data name="calls" label="Call Sites (unfiltered SNPs)" format="vcf"/>
|
|
21 <data name="pileup" label="Call Sites (pileup)" format="pileup"/>
|
|
22 <data name="metrics" label="Call sites (Picard metrics)" format="txt"/>
|
0
|
23 </outputs>
|
|
24 <tests>
|
|
25 <test>
|
|
26 <param name="reference" value="lambda_virus.fasta"/>
|
3
|
27 <param name="input" value="reads.sam"/>
|
0
|
28 <output name="calls" ftype="vcf">
|
|
29 <assert_contents>
|
|
30 <has_size value="9976" delta="100"/>
|
1
|
31 </assert_contents>
|
0
|
32 </output>
|
|
33 <output name="pileup" ftype="pileup">
|
|
34 <assert_contents>
|
|
35 <has_size value="4259620" delta="100"/>
|
1
|
36 </assert_contents>
|
0
|
37 </output>
|
|
38 </test>
|
|
39 </tests>
|
|
40 <help><![CDATA[
|
2
|
41 **What it does**
|
|
42
|
|
43 Finds the sites with high-confidence SNPs in a sample.
|
|
44
|
|
45 **More information**
|
|
46
|
|
47 CFSAN SNP Pipeline `call consensus documentation <https://snp-pipeline.readthedocs.io/en/latest/cmd_ref.html#call-consensus>`_
|
0
|
48 ]]></help>
|
|
49 <expand macro="citations"/>
|
|
50 </tool>
|
|
51
|