diff options
Diffstat (limited to 'cwl')
| -rw-r--r-- | cwl/gemma/gemma-loco.cwl | 175 | ||||
| -rw-r--r-- | cwl/gemma/gemma-loco.scm | 9 |
2 files changed, 6 insertions, 178 deletions
diff --git a/cwl/gemma/gemma-loco.cwl b/cwl/gemma/gemma-loco.cwl deleted file mode 100644 index 5a27e7d..0000000 --- a/cwl/gemma/gemma-loco.cwl +++ /dev/null @@ -1,175 +0,0 @@ -cwlVersion: v1.2 -class: Workflow -requirements: - SubworkflowFeatureRequirement: {} - ScatterFeatureRequirement: {} -inputs: - genotype_file: - type: File - pheno_file: - type: File - snps_file: - type: File - lmm: - type: string - chromosomes: - type: - type: array - items: string - cache_dirs: - type: - type: array - items: string -outputs: - gwa_json: - type: - type: array - items: File - outputSource: gwa/gwa_json - archive: - type: - type: array - items: File - outputSource: gwa/archive -steps: - kinship: - in: - genotype_file: genotype_file - pheno_file: pheno_file - snps_file: snps_file - chr: chromosomes - cache_dir: cache_dirs - out: - - kinship_json - - archive - run: - cwlVersion: v1.2 - class: CommandLineTool - requirements: {} - arguments: - - position: 0 - valueFrom: "gemma-wrapper" - - position: 1 - valueFrom: "--json" - - position: 2 - valueFrom: "--loco" - - position: 3 - valueFrom: "--no-parallel" - - position: 6 - valueFrom: "--" - - position: 10 - valueFrom: "-gk" - inputs: - cache_dir: - type: string - inputBinding: - position: 4 - prefix: "--cache-dir" - chr: - type: string - inputBinding: - position: 5 - prefix: "--chromosomes" - genotype_file: - type: File - inputBinding: - position: 7 - prefix: "-g" - pheno_file: - type: File - inputBinding: - position: 8 - prefix: "-p" - snps_file: - type: File - inputBinding: - position: 9 - prefix: "-a" - outputs: - kinship_json: - type: stdout - archive: - type: File - outputBinding: - glob: "$(inputs.cache_dir)/*-gemma-cXX.tar.xz" - stdout: kinship.json - scatter: - - chr - - cache_dir - scatterMethod: dotproduct - gwa: - in: - genotype_file: genotype_file - pheno_file: pheno_file - snps_file: snps_file - lmm: lmm - chr: chromosomes - cache_dir: cache_dirs - kinship_json: kinship/kinship_json - out: - - gwa_json - - archive - run: - cwlVersion: v1.2 - class: CommandLineTool - requirements: {} - arguments: - - position: 0 - valueFrom: "gemma-wrapper" - - position: 1 - valueFrom: "--json" - - position: 2 - valueFrom: "--loco" - - position: 3 - valueFrom: "--no-parallel" - - position: 7 - valueFrom: "--" - inputs: - cache_dir: - type: string - inputBinding: - position: 4 - prefix: "--cache-dir" - kinship_json: - type: File - inputBinding: - position: 5 - prefix: "--input" - chr: - type: string - inputBinding: - position: 6 - prefix: "--chromosomes" - genotype_file: - type: File - inputBinding: - position: 8 - prefix: "-g" - pheno_file: - type: File - inputBinding: - position: 9 - prefix: "-p" - snps_file: - type: File - inputBinding: - position: 10 - prefix: "-a" - lmm: - type: string - inputBinding: - position: 11 - prefix: "-lmm" - outputs: - gwa_json: - type: stdout - archive: - type: File - outputBinding: - glob: "$(inputs.cache_dir)/*-gemma-GWA.tar.xz" - stdout: "$(inputs.chr)-gwa.json" - scatter: - - chr - - cache_dir - - kinship_json - scatterMethod: dotproduct diff --git a/cwl/gemma/gemma-loco.scm b/cwl/gemma/gemma-loco.scm index 31c12e2..8c3ecda 100644 --- a/cwl/gemma/gemma-loco.scm +++ b/cwl/gemma/gemma-loco.scm @@ -7,10 +7,13 @@ ;; do, so the two can be compared (correctness, timing). ;; ;; Written in ccwl (https://ccwl.systemreboot.net/), per Arun's -;; request, and compiled to cwl/gemma/gemma-loco.cwl: +;; request, not raw CWL. ravanan itself only runs compiled CWL, so +;; src/gemma.rs's compute_ravanan compiles this file fresh on every +;; call (`ccwl compile --output=<generated path> gemma-loco.scm`, +;; cheap: pure macro expansion, no Guix build involved) into a +;; throwaway file under its cache dir -- the compiled .cwl is never +;; checked into the repo. To compile it by hand for inspection: ;; ccwl compile --output=gemma-loco.cwl gemma-loco.scm -;; ravanan itself still only runs the compiled .cwl; nothing here -;; changes how src/gemma.rs's compute_ravanan invokes ravanan. (define kinship ;; gemma-wrapper's --loco kinship (-gk) step, restricted to one |
