Browse Source

first commit

master
LUYAO REN 6 years ago
commit
3ac74caed8
4 changed files with 57 additions and 0 deletions
  1. +8
    -0
      inputs
  2. BIN
      tasks/.DS_Store
  3. +29
    -0
      tasks/NGScheckMates.wdl
  4. +20
    -0
      workflow.wdl

+ 8
- 0
inputs View File

@@ -0,0 +1,8 @@
{
"{{ project_name }}.out_dir": "String (optional, default = \"./\")",
"{{ project_name }}.docker": "registry.cn-shanghai.aliyuncs.com/pgx-docker-registry/ngscheckmate:v1.0.0",
"{{ project_name }}.input_file": "{{ input_file }}",
"{{ project_name }}.fastq_dir": "{{ fastq_dir }}",
"{{ project_name }}.disk_size": "{{ disk_size }}",
"{{ project_name }}.cluster_config": "{{ cluster_config }}"
}

BIN
tasks/.DS_Store View File


+ 29
- 0
tasks/NGScheckMates.wdl View File

@@ -0,0 +1,29 @@
task NGScheckMates {
File fastq_dir
File input_file
File out_dir
String docker
String out_dir = "./"
String cluster_config
String disk_size

command <<<
set -o pipefail
set -e
nt=$(nproc)
python ncm_fastq.py -l ${input_file} -pt SNP/SNP.pt –O ${out_dir} -p $nt -s 0.3 -f
>>>

runtime {
docker:docker
cluster:cluster_config
systemDisk:"cloud_ssd 40"
dataDisk:"cloud_ssd " + disk_size + " /cromwell_root/"
}
output {
File all_txt="output_all.txt"
File cor_txt="output_corr_matrix.txt"
File matched_txt="output_matched.txt"
File r_script="r_script.r"
}
}

+ 20
- 0
workflow.wdl View File

@@ -0,0 +1,20 @@
import "./tasks/NGScheckMates.wdl" as NGScheckMates
workflow {{ project_name }} {
File fastq_dir
File input_file
String docker
String out_dir = "./"
String cluster_config
String disk_size
call NGScheckMates.NGScheckMates as NGScheckMates {
input:
fastq_dir=fastq_dir,
input_file=input_file,
out_dir=out_dir,
docker=docker,
disk_size=disk_size,
cluster_config=cluster_config
}
}

Loading…
Cancel
Save