Mercurial > repos > bgruening > hicexplorer_hicmergeloops
annotate hicMergeLoops.xml @ 9:78c6a07a85d6 draft default tip
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 69bb60ab875c1c1769298678f0890d8b92f1899d
author | iuc |
---|---|
date | Thu, 05 Dec 2024 17:11:23 +0000 |
parents | 0b0145d861d2 |
children |
rev | line source |
---|---|
7
0b0145d861d2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 8586409c5f329eaf75902eedc3d29a6e82560788
iuc
parents:
5
diff
changeset
|
1 <tool id="hicexplorer_hicmergeloops" name="@BINARY@" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@"> |
0
3d9e8ab2eda4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 5744259254d4254a29cb7a6687fbbfd103301064"
bgruening
parents:
diff
changeset
|
2 <description>merge detected loops of different resolutions.</description> |
3d9e8ab2eda4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 5744259254d4254a29cb7a6687fbbfd103301064"
bgruening
parents:
diff
changeset
|
3 <macros> |
3d9e8ab2eda4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 5744259254d4254a29cb7a6687fbbfd103301064"
bgruening
parents:
diff
changeset
|
4 <token name="@BINARY@">hicMergeLoops</token> |
3d9e8ab2eda4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 5744259254d4254a29cb7a6687fbbfd103301064"
bgruening
parents:
diff
changeset
|
5 <import>macros.xml</import> |
3d9e8ab2eda4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 5744259254d4254a29cb7a6687fbbfd103301064"
bgruening
parents:
diff
changeset
|
6 </macros> |
3d9e8ab2eda4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 5744259254d4254a29cb7a6687fbbfd103301064"
bgruening
parents:
diff
changeset
|
7 <expand macro="requirements" /> |
3d9e8ab2eda4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 5744259254d4254a29cb7a6687fbbfd103301064"
bgruening
parents:
diff
changeset
|
8 <command detect_errors="exit_code"><![CDATA[ |
3d9e8ab2eda4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 5744259254d4254a29cb7a6687fbbfd103301064"
bgruening
parents:
diff
changeset
|
9 #for $counter, $loopfile in enumerate($inputFiles): |
3d9e8ab2eda4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 5744259254d4254a29cb7a6687fbbfd103301064"
bgruening
parents:
diff
changeset
|
10 ln -s '$loopfile' '${counter}_loop_file.bedgraph' && |
3d9e8ab2eda4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 5744259254d4254a29cb7a6687fbbfd103301064"
bgruening
parents:
diff
changeset
|
11 #end for |
3d9e8ab2eda4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 5744259254d4254a29cb7a6687fbbfd103301064"
bgruening
parents:
diff
changeset
|
12 #set $m = ' '.join([ '\'%s_loop_file.bedgraph\'' % $counter for $counter, $inputfile in enumerate($inputFiles) ]) |
1
8b792b85cf8c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 4b602d427e0fc0da5353a4510798349de98e4ae4"
iuc
parents:
0
diff
changeset
|
13 |
0
3d9e8ab2eda4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 5744259254d4254a29cb7a6687fbbfd103301064"
bgruening
parents:
diff
changeset
|
14 @BINARY@ |
3d9e8ab2eda4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 5744259254d4254a29cb7a6687fbbfd103301064"
bgruening
parents:
diff
changeset
|
15 --inputFiles $m |
3d9e8ab2eda4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 5744259254d4254a29cb7a6687fbbfd103301064"
bgruening
parents:
diff
changeset
|
16 --lowestResolution $lowestResolution |
3d9e8ab2eda4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 5744259254d4254a29cb7a6687fbbfd103301064"
bgruening
parents:
diff
changeset
|
17 --outFileName merged_loops.bedgraph |
5
b69d55de57eb
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 2a0943e78bdc8ebb13f181399206a9eea37ed78f"
iuc
parents:
1
diff
changeset
|
18 ]]> </command> |
0
3d9e8ab2eda4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 5744259254d4254a29cb7a6687fbbfd103301064"
bgruening
parents:
diff
changeset
|
19 <inputs> |
7
0b0145d861d2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 8586409c5f329eaf75902eedc3d29a6e82560788
iuc
parents:
5
diff
changeset
|
20 <param argument="--inputFiles" type="data" format="bed" multiple="true" label="Loop files to merge" help="The loop files from hicDetectLoops. To use files from other sources, |
5
b69d55de57eb
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 2a0943e78bdc8ebb13f181399206a9eea37ed78f"
iuc
parents:
1
diff
changeset
|
21 please follow \'chr start end chr start end\' format and remove any header." /> |
7
0b0145d861d2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 8586409c5f329eaf75902eedc3d29a6e82560788
iuc
parents:
5
diff
changeset
|
22 <param argument="--lowestResolution" type="integer" value="" label="Lowest used resolution" help="The lowest resolution of all loop files, i.e. 5kb, 10kb and 25kb, please use 25000." /> |
0
3d9e8ab2eda4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 5744259254d4254a29cb7a6687fbbfd103301064"
bgruening
parents:
diff
changeset
|
23 </inputs> |
3d9e8ab2eda4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 5744259254d4254a29cb7a6687fbbfd103301064"
bgruening
parents:
diff
changeset
|
24 <outputs> |
5
b69d55de57eb
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 2a0943e78bdc8ebb13f181399206a9eea37ed78f"
iuc
parents:
1
diff
changeset
|
25 <data name="mergedLoops" from_work_dir="merged_loops.bedgraph" format="bed" label="${tool.name} on [${on_string}]: Merged loops" /> |
0
3d9e8ab2eda4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 5744259254d4254a29cb7a6687fbbfd103301064"
bgruening
parents:
diff
changeset
|
26 </outputs> |
3d9e8ab2eda4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 5744259254d4254a29cb7a6687fbbfd103301064"
bgruening
parents:
diff
changeset
|
27 <tests> |
3d9e8ab2eda4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 5744259254d4254a29cb7a6687fbbfd103301064"
bgruening
parents:
diff
changeset
|
28 <test> |
7
0b0145d861d2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 8586409c5f329eaf75902eedc3d29a6e82560788
iuc
parents:
5
diff
changeset
|
29 <param name="inputFiles" ftype="bed" value="hicMergeLoops/gm12878_10kb.bedgraph,hicMergeLoops/gm12878_5kb.bedgraph,hicMergeLoops/gm12878_25kb.bedgraph" /> |
5
b69d55de57eb
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 2a0943e78bdc8ebb13f181399206a9eea37ed78f"
iuc
parents:
1
diff
changeset
|
30 <param name="lowestResolution" value="25000" /> |
b69d55de57eb
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 2a0943e78bdc8ebb13f181399206a9eea37ed78f"
iuc
parents:
1
diff
changeset
|
31 <output name="mergedLoops" file="hicMergeLoops/gm12878_all.bedgraph" ftype="bed" /> |
0
3d9e8ab2eda4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 5744259254d4254a29cb7a6687fbbfd103301064"
bgruening
parents:
diff
changeset
|
32 </test> |
3d9e8ab2eda4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 5744259254d4254a29cb7a6687fbbfd103301064"
bgruening
parents:
diff
changeset
|
33 </tests> |
3d9e8ab2eda4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 5744259254d4254a29cb7a6687fbbfd103301064"
bgruening
parents:
diff
changeset
|
34 <help><![CDATA[ |
3d9e8ab2eda4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 5744259254d4254a29cb7a6687fbbfd103301064"
bgruening
parents:
diff
changeset
|
35 |
3d9e8ab2eda4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 5744259254d4254a29cb7a6687fbbfd103301064"
bgruening
parents:
diff
changeset
|
36 Merge detected loops |
3d9e8ab2eda4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 5744259254d4254a29cb7a6687fbbfd103301064"
bgruening
parents:
diff
changeset
|
37 ==================== |
3d9e8ab2eda4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 5744259254d4254a29cb7a6687fbbfd103301064"
bgruening
parents:
diff
changeset
|
38 |
3d9e8ab2eda4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 5744259254d4254a29cb7a6687fbbfd103301064"
bgruening
parents:
diff
changeset
|
39 This script merges the loop locations of different different resolutions. |
3d9e8ab2eda4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 5744259254d4254a29cb7a6687fbbfd103301064"
bgruening
parents:
diff
changeset
|
40 |
1
8b792b85cf8c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 4b602d427e0fc0da5353a4510798349de98e4ae4"
iuc
parents:
0
diff
changeset
|
41 Loops need to have the following format: |
0
3d9e8ab2eda4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 5744259254d4254a29cb7a6687fbbfd103301064"
bgruening
parents:
diff
changeset
|
42 |
3d9e8ab2eda4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 5744259254d4254a29cb7a6687fbbfd103301064"
bgruening
parents:
diff
changeset
|
43 chr start end chr start end |
3d9e8ab2eda4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 5744259254d4254a29cb7a6687fbbfd103301064"
bgruening
parents:
diff
changeset
|
44 |
1
8b792b85cf8c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 4b602d427e0fc0da5353a4510798349de98e4ae4"
iuc
parents:
0
diff
changeset
|
45 A merge happens if x and y position of a loop overlaps with x and y position of another loop; all loops are considered as an overlap within +/- the bin size of the lowest resolution. |
8b792b85cf8c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 4b602d427e0fc0da5353a4510798349de98e4ae4"
iuc
parents:
0
diff
changeset
|
46 I.e. for a loop with coordinates x and y, the overlap to all other loops is searched for (x - lowest resolution) and (y + lowest resolution). |
0
3d9e8ab2eda4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 5744259254d4254a29cb7a6687fbbfd103301064"
bgruening
parents:
diff
changeset
|
47 If two or more locations should be merged, the one with the lowest resolution is taken as the merged loop. |
3d9e8ab2eda4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 5744259254d4254a29cb7a6687fbbfd103301064"
bgruening
parents:
diff
changeset
|
48 |
3d9e8ab2eda4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 5744259254d4254a29cb7a6687fbbfd103301064"
bgruening
parents:
diff
changeset
|
49 Example usage: |
3d9e8ab2eda4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 5744259254d4254a29cb7a6687fbbfd103301064"
bgruening
parents:
diff
changeset
|
50 |
3d9e8ab2eda4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 5744259254d4254a29cb7a6687fbbfd103301064"
bgruening
parents:
diff
changeset
|
51 `$ hicMergeLoops -i gm12878_10kb.bedgraph gm12878_5kb.bedgraph gm12878_25kb.bedgraph -o merged_result.bedgraph -r 25000` |
3d9e8ab2eda4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 5744259254d4254a29cb7a6687fbbfd103301064"
bgruening
parents:
diff
changeset
|
52 |
3d9e8ab2eda4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 5744259254d4254a29cb7a6687fbbfd103301064"
bgruening
parents:
diff
changeset
|
53 Please recall: We work with binned data i.e. the lowest resolution is therefore the one where we merge the most bases into one bin. In the above example the lowest resultion is 25kb, the highest resolution is 5kb. |
3d9e8ab2eda4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 5744259254d4254a29cb7a6687fbbfd103301064"
bgruening
parents:
diff
changeset
|
54 |
3d9e8ab2eda4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 5744259254d4254a29cb7a6687fbbfd103301064"
bgruening
parents:
diff
changeset
|
55 |
3d9e8ab2eda4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 5744259254d4254a29cb7a6687fbbfd103301064"
bgruening
parents:
diff
changeset
|
56 For more information about HiCExplorer please consider our documentation on readthedocs.io_ |
3d9e8ab2eda4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 5744259254d4254a29cb7a6687fbbfd103301064"
bgruening
parents:
diff
changeset
|
57 |
3d9e8ab2eda4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 5744259254d4254a29cb7a6687fbbfd103301064"
bgruening
parents:
diff
changeset
|
58 .. _readthedocs.io: http://hicexplorer.readthedocs.io/en/latest/index.html |
5
b69d55de57eb
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 2a0943e78bdc8ebb13f181399206a9eea37ed78f"
iuc
parents:
1
diff
changeset
|
59 ]]> </help> |
0
3d9e8ab2eda4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 5744259254d4254a29cb7a6687fbbfd103301064"
bgruening
parents:
diff
changeset
|
60 <expand macro="citations" /> |
3d9e8ab2eda4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 5744259254d4254a29cb7a6687fbbfd103301064"
bgruening
parents:
diff
changeset
|
61 </tool> |