comparison computeFraglen.xml @ 0:6e75a84e9338 draft

planemo upload commit e96b43f96afce6a7b7dfd4499933aad7d05c955e-dirty
author thondeboer
date Tue, 15 May 2018 02:39:53 -0400
parents
children 362e0b0f7024
comparison
equal deleted inserted replaced
-1:000000000000 0:6e75a84e9338
1 <tool id="computeFraglen"
2 name="computeFraglen"
3 version="1.0.0"
4 profile="16.04">
5 <description>computes empirical fragment length distribution from sample data in BAM format. Creates model file for use in NEAT-genReads</description>
6 <requirements>
7 <requirement type="package" version="0.1.19">samtools</requirement>
8 <requirement type="package" version="1.9.1">numpy</requirement>
9 </requirements>
10 <command detect_errors="exit_code">
11 <![CDATA[
12 samtools view -d $bam_file
13 | python2 $__tool_directory__/utilities/computeFraglen.py
14 ]]>
15 </command>
16 <inputs>
17 <param name="bam_file"
18 type="data"
19 format="bam"
20 label="The BAM file to be used to calculate the fragment from [-]"
21 help="This will be used by SAMTOOLS to convert BAM to SAM as preparation by the computeFraglen tool"
22 />
23
24 </inputs>
25 <outputs>
26 <data format="txt"
27 name="computeGC_modelfile"
28 from_work_dir="fraglen.p"
29 label="${os.path.splitext($bam_file.name)[0]}_fraglen.p"
30 metadata_source="in_type.reference">
31 </data>
32
33 </outputs>
34 <tests>
35 <test>
36 <param name="bam_file" value="chrMT-PE-VCF-BAM.bam"/>
37 <output name="computeGC_modelfile" file="chrMT-PE-VCF-BAM-fraglen.p" compare="diff"/>
38 </test>
39
40 </tests>
41 </tool>