Created
July 21, 2023 19:54
-
-
Save ruchim/e5f99a59f148946166ffe70daf457db7 to your computer and use it in GitHub Desktop.
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
task regression { | |
input { | |
String phecode | |
String phecode_directory | |
String plink | |
File covars | |
} | |
File phecode_file = phecode_directory + phecode + ".tsv" | |
File plink_bed = plink + ".bed" | |
File plink_bim = plink + ".bim" | |
File plink_fam = plink + ".fam" | |
Int disk_size = ceil(size(plink_bed, "GB")*2 + size(plink_bim, "GB") + size(plink_fam, "GB"))*3 | |
command { | |
plink --bed '${plink_bed}' --bim '${plink_bim}' --fam '${plink_fam}' --pheno '{phecode_file}' --covar '${covars}' --logistic --ci 0.95 --out '${phecode}' | |
} | |
output { | |
File output_file = "${phecode}.assoc.logistic" | |
} | |
runtime { | |
docker: "us.gcr.io/broad-dsp-gcr-public/terra-jupyter-aou:2.1.22" | |
memory: "7 GB" | |
cpu: "2" | |
disks: "local-disk " + disk_size + " HDD" | |
preemptible: 3 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment