-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move taxon_id conversion to its own file; remove comment cruft
- Loading branch information
1 parent
931e815
commit 42e5503
Showing
4 changed files
with
56 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
version 1.0 | ||
|
||
workflow convert_taxon_ids { | ||
input { | ||
Int taxon_id | ||
} | ||
String unsupported_organism = "unsupported" | ||
if (taxon_id == "2697049") { | ||
String sars_cov_2 = "sars-cov-2" | ||
} | ||
if (taxon_id == "10244") { | ||
String mpox = "MPXV" | ||
} | ||
if (taxon_id == "11082") { | ||
String wnv = "WNV" | ||
} | ||
if (taxon_id == "11320") { | ||
String flu_a = "flu" # flu A | ||
} | ||
if (taxon_id == "11520") { | ||
String flu_b = "flu" # flu B | ||
} | ||
if (taxon_id == "12814") { | ||
String rsv_a = "rsv_a" | ||
} | ||
if (taxon_id == "12815") { | ||
String rsv_b = "rsv_b" | ||
} | ||
if (taxon_id == "11676") { | ||
String hiv = "HIV" | ||
} | ||
output { | ||
organism = select_first([sars_cov_2, mpox, wnv, flu_a, flu_b, rsv_a, rsv_b, hiv, unsupported_organism]) | ||
} | ||
} |