comparison utils_add-read-counts.xml @ 11:487f438da099 draft

planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/segmentation_fold_galaxy_wrapper commit 879dad538d7c2fa8b7e7f3e9460ff88874797d2c
author yhoogstrate
date Fri, 06 May 2016 05:45:36 -0400
parents
children c690aa928d3d
comparison
equal deleted inserted replaced
10:312edff152eb 11:487f438da099
1 <tool id="smf_utils_add-read-counts" name="add-read-counts" version="@VERSION@-0">
2 <description>Annotate sequences by adding the read counts from a bam file, within a region contained in the fasta header of the dbn file</description>
3
4 <macros>
5 <import>macros.xml</import>
6 </macros>
7
8 <requirements>
9 @REQUIREMENTS_UTILS@
10 </requirements>
11 <expand macro="stdio" />
12
13 <version_command>@VERSION_COMMAND_UTILS@</version_command>
14
15 <command><![CDATA[
16 ln -f -s '${bam_input_file.metadata.bam_index}' '${bam_input_file}.bai' &&
17
18 segmentation-fold-utils
19 add-read-counts
20 --regex '${regex.replace("'","\\'")}'
21 '$dbn_input_file'
22 '$bam_input_file'
23 '$dbn_output_file'
24 ]]></command>
25
26 <inputs>
27 <param name="dbn_input_file"
28 type="data"
29 format="dbn,txt"
30 label="Input DBN file"
31 help="The 'fasta'-headers should contain the genomic position being used to find overlapping reads in the BAM file"/>
32 <param name="bam_input_file"
33 type="data"
34 format="bam"
35 label="Input BAM file"/>
36 <param name="regex"
37 type="text"
38 argument="--regex"
39 value='>.*?(chr[^:]):([0-9]+)-([0-9]+)'
40 label="Regex to capture the targeted location in DBN file"
41 help="Do not change this value unless you're using customized software in the pipeline - default: '>.*?(chr[^:]):([0-9]+)-([0-9]+)'" />
42 </inputs>
43
44 <outputs>
45 <data name="dbn_output_file"
46 format="dbn"
47 label="${tool.name} on ${dbn_input_file.hid}: ${dbn_input_file.name}"/>
48 </outputs>
49
50 <tests>
51 <test>
52 <param name="dbn_input_file" value="DBNFile.test_01.in.dbn" ftype="dbn"/>
53 <param name="bam_input_file" value="DBNFile.test_01.in.bam" ftype="bam"/>
54 <param name="regex" value='>.*?(chr[^:]):([0-9]+)-([0-9]+)'/>
55
56 <output name="dbn_output_file">
57 <assert_contents>
58 <has_line_matching expression="&gt;chr1:10-21 x unknown-01 \(aligned reads .*?: 20\)"/>
59 <has_line line="GGGGAAACCCC"/>
60 <has_line line="((((...))))&#009;((.((.)).))&#009;-2.5"/>
61 <has_line line="((.((.)).))&#009;(((((.)))))&#009;-3.5"/>
62
63 <has_line_matching expression="&gt;chr1:25-36 x unknown-01 \(aligned reads.*?: 1\)"/>
64 <has_line line="AAAAAAAAAAA"/>
65
66 <has_line_matching expression="&gt;chr1:45-56 x unknown-01 \(aligned reads .*?: 2\)"/>
67 </assert_contents>
68 </output>
69 </test>
70 </tests>
71
72 <help><![CDATA[
73 This is an utility of the segmentation-fold package
74 ]]></help>
75
76 <expand macro="citations" />
77 </tool>