comparison utils_filter-annotated-entries.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 7e5b96d45f8d
comparison
equal deleted inserted replaced
10:312edff152eb 11:487f438da099
1 <tool id="smf_utils_filter-annotated-entries" name="filter-annotated-entries" version="@VERSION@-0">
2 <description>Split entries into two files based on whether they overlap annotations in a bed 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 segmentation-fold-utils
17 filter-annotated-entries
18 --regex '${regex.replace("'","\\'")}'
19 '$dbn_input_file'
20 '$bed_input_file'
21 '$dbn_output_file_overlapping'
22 '$dbn_output_file_non_overlapping'
23 ]]></command>
24
25 <inputs>
26 <param name="dbn_input_file"
27 type="data"
28 format="dbn,txt"
29 label="Input DBN file"
30 help="The 'fasta'-headers should contain the genomic position being used to find overlapping reads in the BAM file"/>
31 <param name="bed_input_file"
32 type="data"
33 format="bed"
34 label="The resultes will be filtered based on overlap with annotations in this BED file"/>
35 <param name="regex"
36 type="text"
37 argument="--regex"
38 value='>.*?(chr[^:]):([0-9]+)-([0-9]+)'
39 label="Regex to capture the targeted location in DBN file"
40 help="Do not change this value unless you're using customized software in the pipeline - default: '>.*?(chr[^:]):([0-9]+)-([0-9]+)'" />
41 </inputs>
42
43 <outputs>
44 <data name="dbn_output_file_overlapping"
45 format="dbn"
46 label="${tool.name} on ${dbn_input_file.hid}: ${dbn_input_file.name} - overlapping entries"/>
47 <data name="dbn_output_file_non_overlapping"
48 format="dbn"
49 label="${tool.name} on ${dbn_input_file.hid}: ${dbn_input_file.name} - non overlapping entries"/>
50 </outputs>
51
52 <tests>
53 <test>
54 <param name="dbn_input_file" value="DBNFile.test_02.in.dbn" ftype="dbn"/>
55 <param name="bed_input_file" value="DBNFile.test_02.in.bed" ftype="bed"/>
56 <param name="regex" value='>.*?(chr[^:]):([0-9]+)-([0-9]+)'/>
57
58 <output name="dbn_output_file_overlapping">
59 <assert_contents>
60 <has_line_matching expression="&gt;chr1:0-10 x unknown-01 \(overlap in .*?: firstbase,1-2-3-4-5,6-7-8-9-10\)"/>
61 <has_line line="AAAAAAAAAA"/>
62 </assert_contents>
63 </output>
64 <output name="dbn_output_file_non_overlapping">
65 <assert_contents>
66 <has_line_matching expression="&gt;chr1:25-36 x unknown-01 \(aligned reads .*?: 1\)"/>
67 <has_line line="AAAAAAAAAAA"/>
68
69 <has_line_matching expression="&gt;chr1:45-56 x unknown-01 \(aligned reads .*?: 2\)"/>
70 </assert_contents>
71 </output>
72 </test>
73 </tests>
74
75 <help><![CDATA[
76 Filter based on whether the entries in the DBN file are already annotated or not
77 ]]></help>
78
79 <expand macro="citations" />
80 </tool>