Mercurial > repos > michal_klinka > trtools
annotate StatSTR/macros.xml @ 1:8e8cf43f6836 draft default tip
planemo upload for repository https://github.com/Kulivox/TRToolsGalaxyWrapper commit df706bf76531920d935ec6d2eb41b9b1420aa390
author | michal_klinka |
---|---|
date | Sun, 15 May 2022 15:23:59 +0000 |
parents | ecf8c4f9f8ba |
children |
rev | line source |
---|---|
0
ecf8c4f9f8ba
"planemo upload for repository https://github.com/Kulivox/TRToolsGalaxyWrapper commit 08480e3145858e41b14bf1061f87243e8cc2d04e"
michal_klinka
parents:
diff
changeset
|
1 <macros> |
ecf8c4f9f8ba
"planemo upload for repository https://github.com/Kulivox/TRToolsGalaxyWrapper commit 08480e3145858e41b14bf1061f87243e8cc2d04e"
michal_klinka
parents:
diff
changeset
|
2 <token name="@tool_version@">4.1.0</token> |
ecf8c4f9f8ba
"planemo upload for repository https://github.com/Kulivox/TRToolsGalaxyWrapper commit 08480e3145858e41b14bf1061f87243e8cc2d04e"
michal_klinka
parents:
diff
changeset
|
3 <token name="@INDEX_VCFS@"><![CDATA[##prepare input and indices |
ecf8c4f9f8ba
"planemo upload for repository https://github.com/Kulivox/TRToolsGalaxyWrapper commit 08480e3145858e41b14bf1061f87243e8cc2d04e"
michal_klinka
parents:
diff
changeset
|
4 #import os |
ecf8c4f9f8ba
"planemo upload for repository https://github.com/Kulivox/TRToolsGalaxyWrapper commit 08480e3145858e41b14bf1061f87243e8cc2d04e"
michal_klinka
parents:
diff
changeset
|
5 |
ecf8c4f9f8ba
"planemo upload for repository https://github.com/Kulivox/TRToolsGalaxyWrapper commit 08480e3145858e41b14bf1061f87243e8cc2d04e"
michal_klinka
parents:
diff
changeset
|
6 #def get_new_vcf_names(vcf_paths): |
ecf8c4f9f8ba
"planemo upload for repository https://github.com/Kulivox/TRToolsGalaxyWrapper commit 08480e3145858e41b14bf1061f87243e8cc2d04e"
michal_klinka
parents:
diff
changeset
|
7 #set result = [] |
ecf8c4f9f8ba
"planemo upload for repository https://github.com/Kulivox/TRToolsGalaxyWrapper commit 08480e3145858e41b14bf1061f87243e8cc2d04e"
michal_klinka
parents:
diff
changeset
|
8 #for $vcf in $vcf_paths: |
ecf8c4f9f8ba
"planemo upload for repository https://github.com/Kulivox/TRToolsGalaxyWrapper commit 08480e3145858e41b14bf1061f87243e8cc2d04e"
michal_klinka
parents:
diff
changeset
|
9 #set $split_path = $os.path.basename(vcf) |
ecf8c4f9f8ba
"planemo upload for repository https://github.com/Kulivox/TRToolsGalaxyWrapper commit 08480e3145858e41b14bf1061f87243e8cc2d04e"
michal_klinka
parents:
diff
changeset
|
10 #set new_file_name = f"tmp_{split_path.split('.')[0]}.vcf.gz" |
ecf8c4f9f8ba
"planemo upload for repository https://github.com/Kulivox/TRToolsGalaxyWrapper commit 08480e3145858e41b14bf1061f87243e8cc2d04e"
michal_klinka
parents:
diff
changeset
|
11 $result.append($new_file_name) |
ecf8c4f9f8ba
"planemo upload for repository https://github.com/Kulivox/TRToolsGalaxyWrapper commit 08480e3145858e41b14bf1061f87243e8cc2d04e"
michal_klinka
parents:
diff
changeset
|
12 #end for |
ecf8c4f9f8ba
"planemo upload for repository https://github.com/Kulivox/TRToolsGalaxyWrapper commit 08480e3145858e41b14bf1061f87243e8cc2d04e"
michal_klinka
parents:
diff
changeset
|
13 #return $result |
ecf8c4f9f8ba
"planemo upload for repository https://github.com/Kulivox/TRToolsGalaxyWrapper commit 08480e3145858e41b14bf1061f87243e8cc2d04e"
michal_klinka
parents:
diff
changeset
|
14 #end def |
ecf8c4f9f8ba
"planemo upload for repository https://github.com/Kulivox/TRToolsGalaxyWrapper commit 08480e3145858e41b14bf1061f87243e8cc2d04e"
michal_klinka
parents:
diff
changeset
|
15 #def index_vcfs(old_paths, new_paths): |
ecf8c4f9f8ba
"planemo upload for repository https://github.com/Kulivox/TRToolsGalaxyWrapper commit 08480e3145858e41b14bf1061f87243e8cc2d04e"
michal_klinka
parents:
diff
changeset
|
16 #for ($left, $right) in $zip($old_paths, $new_paths): |
ecf8c4f9f8ba
"planemo upload for repository https://github.com/Kulivox/TRToolsGalaxyWrapper commit 08480e3145858e41b14bf1061f87243e8cc2d04e"
michal_klinka
parents:
diff
changeset
|
17 ln -sfn $left $right && |
ecf8c4f9f8ba
"planemo upload for repository https://github.com/Kulivox/TRToolsGalaxyWrapper commit 08480e3145858e41b14bf1061f87243e8cc2d04e"
michal_klinka
parents:
diff
changeset
|
18 tabix -f -p vcf $right && |
ecf8c4f9f8ba
"planemo upload for repository https://github.com/Kulivox/TRToolsGalaxyWrapper commit 08480e3145858e41b14bf1061f87243e8cc2d04e"
michal_klinka
parents:
diff
changeset
|
19 #end for |
ecf8c4f9f8ba
"planemo upload for repository https://github.com/Kulivox/TRToolsGalaxyWrapper commit 08480e3145858e41b14bf1061f87243e8cc2d04e"
michal_klinka
parents:
diff
changeset
|
20 #end def]]></token> |
ecf8c4f9f8ba
"planemo upload for repository https://github.com/Kulivox/TRToolsGalaxyWrapper commit 08480e3145858e41b14bf1061f87243e8cc2d04e"
michal_klinka
parents:
diff
changeset
|
21 <xml name="requirements"> |
ecf8c4f9f8ba
"planemo upload for repository https://github.com/Kulivox/TRToolsGalaxyWrapper commit 08480e3145858e41b14bf1061f87243e8cc2d04e"
michal_klinka
parents:
diff
changeset
|
22 <requirements> |
ecf8c4f9f8ba
"planemo upload for repository https://github.com/Kulivox/TRToolsGalaxyWrapper commit 08480e3145858e41b14bf1061f87243e8cc2d04e"
michal_klinka
parents:
diff
changeset
|
23 <requirement type="package" version="4.1.0">trtools</requirement> |
ecf8c4f9f8ba
"planemo upload for repository https://github.com/Kulivox/TRToolsGalaxyWrapper commit 08480e3145858e41b14bf1061f87243e8cc2d04e"
michal_klinka
parents:
diff
changeset
|
24 <requirement type="package" version="1.14">samtools</requirement> |
ecf8c4f9f8ba
"planemo upload for repository https://github.com/Kulivox/TRToolsGalaxyWrapper commit 08480e3145858e41b14bf1061f87243e8cc2d04e"
michal_klinka
parents:
diff
changeset
|
25 </requirements> |
ecf8c4f9f8ba
"planemo upload for repository https://github.com/Kulivox/TRToolsGalaxyWrapper commit 08480e3145858e41b14bf1061f87243e8cc2d04e"
michal_klinka
parents:
diff
changeset
|
26 </xml> |
ecf8c4f9f8ba
"planemo upload for repository https://github.com/Kulivox/TRToolsGalaxyWrapper commit 08480e3145858e41b14bf1061f87243e8cc2d04e"
michal_klinka
parents:
diff
changeset
|
27 <xml name="vcfTypes"> |
ecf8c4f9f8ba
"planemo upload for repository https://github.com/Kulivox/TRToolsGalaxyWrapper commit 08480e3145858e41b14bf1061f87243e8cc2d04e"
michal_klinka
parents:
diff
changeset
|
28 <option value="auto">Auto</option> |
ecf8c4f9f8ba
"planemo upload for repository https://github.com/Kulivox/TRToolsGalaxyWrapper commit 08480e3145858e41b14bf1061f87243e8cc2d04e"
michal_klinka
parents:
diff
changeset
|
29 <option value="gangstr">GangSTR</option> |
ecf8c4f9f8ba
"planemo upload for repository https://github.com/Kulivox/TRToolsGalaxyWrapper commit 08480e3145858e41b14bf1061f87243e8cc2d04e"
michal_klinka
parents:
diff
changeset
|
30 <option value="advntr">Advntr</option> |
ecf8c4f9f8ba
"planemo upload for repository https://github.com/Kulivox/TRToolsGalaxyWrapper commit 08480e3145858e41b14bf1061f87243e8cc2d04e"
michal_klinka
parents:
diff
changeset
|
31 <option value="hipstr">HipSTR</option> |
ecf8c4f9f8ba
"planemo upload for repository https://github.com/Kulivox/TRToolsGalaxyWrapper commit 08480e3145858e41b14bf1061f87243e8cc2d04e"
michal_klinka
parents:
diff
changeset
|
32 <option value="eh">Expansion hunter</option> |
ecf8c4f9f8ba
"planemo upload for repository https://github.com/Kulivox/TRToolsGalaxyWrapper commit 08480e3145858e41b14bf1061f87243e8cc2d04e"
michal_klinka
parents:
diff
changeset
|
33 <option value="popstr">PopSTR</option> |
ecf8c4f9f8ba
"planemo upload for repository https://github.com/Kulivox/TRToolsGalaxyWrapper commit 08480e3145858e41b14bf1061f87243e8cc2d04e"
michal_klinka
parents:
diff
changeset
|
34 </xml> |
ecf8c4f9f8ba
"planemo upload for repository https://github.com/Kulivox/TRToolsGalaxyWrapper commit 08480e3145858e41b14bf1061f87243e8cc2d04e"
michal_klinka
parents:
diff
changeset
|
35 </macros> |