-
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.
Add krona task to TheiaMeta_Illumina_PE (#213)
* create krona task; add krona to raw and clean keaken reports in theiameta_illumina_pe * fix bug --------- Co-authored-by: Sage Wright <[email protected]>
- Loading branch information
1 parent
358941a
commit 203ec3b
Showing
2 changed files
with
49 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
version 1.0 | ||
|
||
task krona { | ||
input { | ||
File kraken2_report | ||
String samplename | ||
String docker = "us-docker.pkg.dev/general-theiagen/biocontainers/krona:2.7.1--pl526_5" | ||
Int memory = 8 | ||
Int cpu = 4 | ||
} | ||
command <<< | ||
# Get VERSION | ||
ktImportTaxonomy 2>&1 | sed -n '/KronaTools /p' | sed 's/^.*KronaTools //; s/ - ktImportTaxonomy.*//' | tee VERSION | ||
|
||
# Get taxonomy file | ||
ktUpdateTaxonomy.sh taxonomy | ||
|
||
# Run krona with taxonomy on krakren report | ||
ktImportTaxonomy -o ~{samplename}_krona.html ~{kraken2_report} -tax taxonomy | ||
>>> | ||
output { | ||
String krona_version = read_string("VERSION") | ||
String krona_docker = docker | ||
File krona_html = "~{samplename}_krona.html" | ||
} | ||
runtime { | ||
docker: "~{docker}" | ||
memory: "~{memory} GB" | ||
cpu: cpu | ||
disks: "local-disk 100 SSD" | ||
preemptible: 0 | ||
} | ||
} |
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