Mercurial > repos > yhoogstrate > segmentation_fold
comparison utils_add-read-counts.xml @ 4:63df1e23f4ff draft
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/segmentation_fold_galaxy_wrapper commit 00690c63c51a7f7563f2428c313d7fa75f2657e5-dirty
author | yhoogstrate |
---|---|
date | Thu, 28 Jul 2016 10:25:37 -0400 |
parents | |
children | b7cf9b172cfe |
comparison
equal
deleted
inserted
replaced
3:cd1bba1c66b3 | 4:63df1e23f4ff |
---|---|
1 <tool id="smf_utils_add-read-counts" name="add-read-counts" version="@VERSION@-3"> | |
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 <requirement type="package" version="2.7.10">python</requirement> | |
10 <requirement type="package" version="1.9">numpy</requirement> | |
11 <requirement type="package" version="0.8.2.1">pysam</requirement> | |
12 <requirement type="package" version="0.6.1">htseq</requirement> | |
13 <requirement type="package" version="2.0.1">segmentation-fold-utils</requirement> | |
14 </requirements> | |
15 <expand macro="stdio" /> | |
16 | |
17 <version_command>@VERSION_COMMAND_UTILS@</version_command> | |
18 | |
19 <command><![CDATA[ | |
20 ln -f -s '${bam_input_file.metadata.bam_index}' '${bam_input_file}.bai' && | |
21 | |
22 segmentation-fold-utils | |
23 add-read-counts | |
24 --regex '${regex.replace("'","\\'")}' | |
25 '$dbn_input_file' | |
26 '$bam_input_file' | |
27 '$dbn_output_file' | |
28 ]]></command> | |
29 | |
30 <inputs> | |
31 <param name="dbn_input_file" | |
32 type="data" | |
33 format="dbn,txt,text" | |
34 label="Input DBN file" | |
35 help="The 'fasta'-headers should contain the genomic position being used to find overlapping reads in the BAM file"/> | |
36 <param name="bam_input_file" | |
37 type="data" | |
38 format="bam" | |
39 label="Input BAM file"/> | |
40 <param name="regex" | |
41 type="text" | |
42 argument="--regex" | |
43 value='>.*?(chr[^:]):([0-9]+)-([0-9]+)' | |
44 label="Regex to capture the targeted location in DBN file" | |
45 help="Do not change this value unless you're using customized software in the pipeline - default: '>.*?(chr[^:]):([0-9]+)-([0-9]+)'" /> | |
46 </inputs> | |
47 | |
48 <outputs> | |
49 <data name="dbn_output_file" | |
50 format="dbn" | |
51 label="${tool.name} on ${dbn_input_file.hid}: ${dbn_input_file.name}"/> | |
52 </outputs> | |
53 | |
54 <tests> | |
55 <test> | |
56 <param name="dbn_input_file" value="DBNFile.test_01.in.dbn" ftype="dbn"/> | |
57 <param name="bam_input_file" value="DBNFile.test_01.in.bam" ftype="bam"/> | |
58 <param name="regex" value='>.*?(chr[^:]):([0-9]+)-([0-9]+)'/> | |
59 | |
60 <output name="dbn_output_file"> | |
61 <assert_contents> | |
62 <has_line_matching expression=">chr1:10-21 x unknown-01 \(aligned reads .*?: 20\)"/> | |
63 <has_line line="GGGGAAACCCC"/> | |
64 <has_line line="((((...))))	((.((.)).))	-2.5"/> | |
65 <has_line line="((.((.)).))	(((((.)))))	-3.5"/> | |
66 | |
67 <has_line_matching expression=">chr1:25-36 x unknown-01 \(aligned reads.*?: 1\)"/> | |
68 <has_line line="AAAAAAAAAAA"/> | |
69 | |
70 <has_line_matching expression=">chr1:45-56 x unknown-01 \(aligned reads .*?: 2\)"/> | |
71 </assert_contents> | |
72 </output> | |
73 </test> | |
74 </tests> | |
75 | |
76 <help><![CDATA[ | |
77 This is an utility of the segmentation-fold package | |
78 ]]></help> | |
79 | |
80 <expand macro="citations" /> | |
81 </tool> |