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