Commit c899f37 xonq
committed
1 parent 0a1f7a1 commit c899f37 Copy full SHA for c899f37
File tree 1 file changed +47
-0
lines changed
tasks/utilities/data_handling
1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change
1
+ version 1.0
2
+
3
+ task phylovalidate {
4
+ input {
5
+ File tree1_path
6
+ File tree2_path
7
+
8
+ Float ? rf_max_distance = 0.0
9
+ Boolean ? unrooted = true
10
+
11
+ String docker = "us-docker.pkg.dev/general-theiagen/theiagen/theiavalidate:0.1.0" # update!!!
12
+ Int disk_size = 10
13
+ Int memory = 4
14
+ Int cpu = 1
15
+ }
16
+ meta {
17
+ # added so that call caching is always turned off
18
+ volatile : true
19
+ }
20
+ command <<<
21
+ # grab the ete3 version
22
+ ete3 --version > VERSION
23
+
24
+ # run ete3 compare
25
+ if ~ {unrooted}; then
26
+ ete3 compare -t ~ {tree1_path} -r ~ {tree2_path} --unrooted --show_mismatches > phylocompare.txt
27
+ else
28
+ ete3 compare -t ~ {tree1_path} -r ~ {tree2_path} --show_mismatches > phylocompare.txt
29
+ fi
30
+
31
+ # extract the RF distance
32
+ tail -1 phylocompare.txt | cut -f 5 -d ' |' | tr -d ' ' > PHYLOCOMPARE_RF_DISTANCE
33
+ >>>
34
+ runtime {
35
+ docker : docker
36
+ memory : memory + " GB"
37
+ cpu : cpu
38
+ disks : "local-disk " + disk_size + " HDD"
39
+ disk : disk_size + " GB"
40
+ dx_instance_type : "mem1_ssd1_v2_x2"
41
+ }
42
+ output {
43
+ String ete3_version = read_string ("VERSION" )
44
+ File summary_report = "phylocompare.txt"
45
+ Float rf_distance = read_float ("PHYLOCOMPARE_RF_DISTANCE" )
46
+ }
47
+ }
You can’t perform that action at this time.
0 commit comments