Browse Source

Alter: add filter parameter

master
YaqingLiu 4 years ago
parent
commit
f2839809a5
4 changed files with 14 additions and 2 deletions
  1. +1
    -0
      defaults
  2. +1
    -0
      inputs
  3. +10
    -2
      tasks/vcf2maf.wdl
  4. +2
    -0
      workflow.wdl

+ 1
- 0
defaults View File

"vep_path": "/opt/vep/ensembl-vep", "vep_path": "/opt/vep/ensembl-vep",
"species": "homo_sapiens_merged", "species": "homo_sapiens_merged",
"ncbi_build": "GRCh38", "ncbi_build": "GRCh38",
"only_pass": true,
"disk_size": "200", "disk_size": "200",
"cluster_config": "OnDemand bcs.a2.3xlarge img-ubuntu-vpc" "cluster_config": "OnDemand bcs.a2.3xlarge img-ubuntu-vpc"
} }

+ 1
- 0
inputs View File

"{{ project_name }}.cache": "{{ cache }}", "{{ project_name }}.cache": "{{ cache }}",
"{{ project_name }}.ncbi_build": "{{ ncbi_build }}", "{{ project_name }}.ncbi_build": "{{ ncbi_build }}",
"{{ project_name }}.species": "{{ species }}", "{{ project_name }}.species": "{{ species }}",
"{{ project_name }}.only_pass": {{ only_pass | tojson }},
"{{ project_name }}.vep_docker": "{{ vep_docker }}", "{{ project_name }}.vep_docker": "{{ vep_docker }}",
"{{ project_name }}.disk_size": "{{ disk_size }}", "{{ project_name }}.disk_size": "{{ disk_size }}",
"{{ project_name }}.cluster_config": "{{ cluster_config }}" "{{ project_name }}.cluster_config": "{{ cluster_config }}"

+ 10
- 2
tasks/vcf2maf.wdl View File

File cache File cache
String ncbi_build String ncbi_build
String species String species
Boolean only_pass
String docker String docker
String cluster_config String cluster_config
String disk_size String disk_size
command <<< command <<<
set -o pipefail set -o pipefail
set -e set -e
nt=$(nproc)
nt=$(nproc)

if [ only_pass ]; then
awk -F'\t' '{if(($1~"^#")||($1!~"^#" && $7=="PASS")){print $0}}' ${vcf} > input_vcf
else
cat ${vcf} > input_vcf
fi

perl /opt/mskcc-vcf2maf/vcf2maf.pl \ perl /opt/mskcc-vcf2maf/vcf2maf.pl \
--input-vcf ${vcf} --output-maf ${basename}.maf \
--input-vcf ${input_vcf} --output-maf ${basename}.maf \
--tumor-id ${tumor_id} --normal-id ${normal_id} \ --tumor-id ${tumor_id} --normal-id ${normal_id} \
--ref-fasta ${ref_dir}/${fasta} \ --ref-fasta ${ref_dir}/${fasta} \
--vep-path ${vep_path} \ --vep-path ${vep_path} \

+ 2
- 0
workflow.wdl View File

File cache File cache
String ncbi_build String ncbi_build
String species String species
Boolean only_pass
String vep_docker String vep_docker
String cluster_config String cluster_config
String disk_size String disk_size
cache=cache, cache=cache,
ncbi_build=ncbi_build, ncbi_build=ncbi_build,
species=species, species=species,
only_pass=only_pass,
docker=vep_docker, docker=vep_docker,
cluster_config=cluster_config, cluster_config=cluster_config,
disk_size=disk_size disk_size=disk_size

Loading…
Cancel
Save