## README | |||||
**Author:** Huang Yechao | **Author:** Huang Yechao | ||||
**E-mail:**17210700095@fudan.edu.cn | **E-mail:**17210700095@fudan.edu.cn |
"{{ project_name }}.dbmills_dir": "oss://pgx-reference-data/GRCh38.d1.vd1/", | "{{ project_name }}.dbmills_dir": "oss://pgx-reference-data/GRCh38.d1.vd1/", | ||||
"{{ project_name }}.db_mills": "Mills_and_1000G_gold_standard.indels.hg38.vcf", | "{{ project_name }}.db_mills": "Mills_and_1000G_gold_standard.indels.hg38.vcf", | ||||
"{{ project_name }}.cluster_config": "{{ cluster if cluster != '' else 'OnDemand ecs.sn1ne.8xlarge img-ubuntu-vpc' }}", | "{{ project_name }}.cluster_config": "{{ cluster if cluster != '' else 'OnDemand ecs.sn1ne.8xlarge img-ubuntu-vpc' }}", | ||||
"{{ project_name }}.docker": "localhost:5000/sentieon-genomics:v2018.08.01 oss://pgx-docker-images/dockers", | |||||
"{{ project_name }}.docker": "registry.cn-shanghai.aliyuncs.com/pgx-docker-registry/sentieon-genomics:v2018.08.01", | |||||
"{{ project_name }}.dbsnp_dir": "oss://pgx-reference-data/GRCh38.d1.vd1/", | "{{ project_name }}.dbsnp_dir": "oss://pgx-reference-data/GRCh38.d1.vd1/", | ||||
"{{ project_name }}.sample": "{{ sample_name }}", | "{{ project_name }}.sample": "{{ sample_name }}", | ||||
"{{ project_name }}.disk_size": "{{ disk_size }}", | "{{ project_name }}.disk_size": "{{ disk_size }}", |
task BQSR { | task BQSR { | ||||
File ref_dir | |||||
File dbsnp_dir | |||||
File dbmills_dir | |||||
String sample | String sample | ||||
String SENTIEON_INSTALL_DIR | String SENTIEON_INSTALL_DIR | ||||
String fasta | String fasta | ||||
File dbsnp_dir | |||||
String dbsnp | String dbsnp | ||||
File dbmills_dir | |||||
String db_mills | String db_mills | ||||
File realigned_bam | File realigned_bam | ||||
File realigned_bam_index | File realigned_bam_index | ||||
>>> | >>> | ||||
runtime { | runtime { | ||||
dockerTag:docker | |||||
cluster: cluster_config | |||||
systemDisk: "cloud_ssd 40" | |||||
dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/" | |||||
docker:docker | |||||
cluster: cluster_config | |||||
systemDisk: "cloud_ssd 40" | |||||
dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/" | |||||
} | } | ||||
output { | output { |
${SENTIEON_INSTALL_DIR}/bin/sentieon driver -t $nt -i ${sorted_bam} --algo Dedup --rmdup --score_info ${sample}_score.txt --metrics ${sample}_dedup_metrics.txt ${sample}.sorted.deduped.bam | ${SENTIEON_INSTALL_DIR}/bin/sentieon driver -t $nt -i ${sorted_bam} --algo Dedup --rmdup --score_info ${sample}_score.txt --metrics ${sample}_dedup_metrics.txt ${sample}.sorted.deduped.bam | ||||
>>> | >>> | ||||
runtime { | runtime { | ||||
dockerTag:docker | |||||
docker:docker | |||||
cluster: cluster_config | cluster: cluster_config | ||||
systemDisk: "cloud_ssd 40" | systemDisk: "cloud_ssd 40" | ||||
dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/" | dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/" |
task Haplotyper { | task Haplotyper { | ||||
File ref_dir | |||||
File dbsnp_dir | |||||
String SENTIEON_INSTALL_DIR | String SENTIEON_INSTALL_DIR | ||||
String fasta | String fasta | ||||
File recaled_bam | File recaled_bam | ||||
File recaled_bam_index | File recaled_bam_index | ||||
File dbsnp_dir | |||||
String dbsnp | String dbsnp | ||||
File ref_dir | |||||
String sample | String sample | ||||
String docker | String docker | ||||
String cluster_config | String cluster_config | ||||
>>> | >>> | ||||
runtime { | runtime { | ||||
dockerTag:docker | |||||
docker:docker | |||||
cluster: cluster_config | cluster: cluster_config | ||||
systemDisk: "cloud_ssd 40" | systemDisk: "cloud_ssd 40" | ||||
dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/" | dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/" | ||||
} | } | ||||
output { | output { | ||||
File vcf = "${sample}_hc.vcf" | |||||
File vcf_idx = "${sample}_hc.vcf.idx" | |||||
File vcf = "${sample}_hc.vcf" | |||||
File vcf_idx = "${sample}_hc.vcf.idx" | |||||
} | } | ||||
} | } | ||||
task Metrics{ | |||||
task Metrics { | |||||
File ref_dir | |||||
String SENTIEON_INSTALL_DIR | String SENTIEON_INSTALL_DIR | ||||
String sample | String sample | ||||
String docker | String docker | ||||
String cluster_config | String cluster_config | ||||
String fasta | String fasta | ||||
File ref_dir | |||||
File sorted_bam | File sorted_bam | ||||
File sorted_bam_index | File sorted_bam_index | ||||
String disk_size | String disk_size | ||||
>>> | >>> | ||||
runtime { | runtime { | ||||
dockerTag:docker | |||||
docker:docker | |||||
cluster: cluster_config | cluster: cluster_config | ||||
systemDisk: "cloud_ssd 40" | systemDisk: "cloud_ssd 40" | ||||
dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/" | dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/" |
task Realigner { | task Realigner { | ||||
File ref_dir | |||||
File dbmills_dir | |||||
String SENTIEON_INSTALL_DIR | String SENTIEON_INSTALL_DIR | ||||
String sample | String sample | ||||
String fasta | String fasta | ||||
File ref_dir | |||||
File Dedup_bam | File Dedup_bam | ||||
File Dedup_bam_index | File Dedup_bam_index | ||||
File dbmills_dir | |||||
String db_mills | String db_mills | ||||
String docker | String docker | ||||
String cluster_config | String cluster_config | ||||
>>> | >>> | ||||
runtime { | runtime { | ||||
dockerTag:docker | |||||
cluster: cluster_config | |||||
docker:docker | |||||
cluster: cluster_config | |||||
systemDisk: "cloud_ssd 40" | systemDisk: "cloud_ssd 40" | ||||
dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/" | dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/" | ||||
} | } |
task { | |||||
task TNscope { | |||||
File ref_dir | |||||
File dbsnp_dir | |||||
String SENTIEON_INSTALL_DIR | String SENTIEON_INSTALL_DIR | ||||
String tumor_name | String tumor_name | ||||
String normal_name | String normal_name | ||||
String cluster_config | String cluster_config | ||||
String fasta | String fasta | ||||
File ref_dir | |||||
File corealigner_bam | File corealigner_bam | ||||
File corealigner_bam_index | File corealigner_bam_index | ||||
File dbsnp_dir | |||||
String dbsnp | String dbsnp | ||||
String disk_size | String disk_size | ||||
} | } | ||||
output { | output { | ||||
File TNscope_vcf= "${sample}.TNscope.TN.vcf" | File TNscope_vcf= "${sample}.TNscope.TN.vcf" | ||||
File TNscope_vcf_index = "${sample}.TNscope.TN.vcf.idx" | File TNscope_vcf_index = "${sample}.TNscope.TN.vcf.idx" | ||||
} | } |
task { | |||||
task TNseq { | |||||
File ref_dir | |||||
File dbsnp_dir | |||||
String SENTIEON_INSTALL_DIR | String SENTIEON_INSTALL_DIR | ||||
String tumor_name | String tumor_name | ||||
String normal_name | String normal_name | ||||
String cluster_config | String cluster_config | ||||
String fasta | String fasta | ||||
File ref_dir | |||||
File corealigner_bam | File corealigner_bam | ||||
File corealigner_bam_index | File corealigner_bam_index | ||||
File dbsnp_dir | |||||
String dbsnp | String dbsnp | ||||
String disk_size | String disk_size | ||||
} | } | ||||
output { | output { | ||||
File TNseq_vcf= "${sample}.TNseq.TN.vcf" | File TNseq_vcf= "${sample}.TNseq.TN.vcf" | ||||
File TNseq_vcf_index = "${sample}.TNseq.TN.vcf.idx" | File TNseq_vcf_index = "${sample}.TNseq.TN.vcf.idx" | ||||
} | } |
task { | |||||
task corealigner { | |||||
File ref_dir | |||||
File dbsnp_dir | |||||
File dbmills_dir | |||||
String sample | String sample | ||||
String SENTIEON_INSTALL_DIR | String SENTIEON_INSTALL_DIR | ||||
String docker | String docker | ||||
String cluster_config | String cluster_config | ||||
String fasta | String fasta | ||||
File ref_dir | |||||
File dbsnp_dir | |||||
String dbsnp | String dbsnp | ||||
File dbmills_dir | |||||
String db_mills | String db_mills | ||||
File tumor_recaled_bam | File tumor_recaled_bam | ||||
File tumor_recaled_bam_index | File tumor_recaled_bam_index |
task deduped_Metrics { | task deduped_Metrics { | ||||
File ref_dir | |||||
String SENTIEON_INSTALL_DIR | String SENTIEON_INSTALL_DIR | ||||
String sample | String sample | ||||
String fasta | String fasta | ||||
File ref_dir | |||||
File Dedup_bam | File Dedup_bam | ||||
File Dedup_bam_index | File Dedup_bam_index | ||||
String docker | String docker | ||||
command <<< | command <<< | ||||
set -o pipefail | |||||
set -e | |||||
export SENTIEON_LICENSE=192.168.0.55:8990 | |||||
nt=$(nproc) | |||||
${SENTIEON_INSTALL_DIR}/bin/sentieon driver -r ${ref_dir}/${fasta} -t $nt -i ${Dedup_bam} --algo CoverageMetrics --omit_base_output ${sample}_deduped_coverage_metrics --algo MeanQualityByCycle ${sample}_deduped_mq_metrics.txt --algo QualDistribution ${sample}_deduped_qd_metrics.txt --algo GCBias --summary ${sample}_deduped_gc_summary.txt ${sample}_deduped_gc_metrics.txt --algo AlignmentStat ${sample}_deduped_aln_metrics.txt --algo InsertSizeMetricAlgo ${sample}_deduped_is_metrics.txt | |||||
set -o pipefail | |||||
set -e | |||||
export SENTIEON_LICENSE=192.168.0.55:8990 | |||||
nt=$(nproc) | |||||
${SENTIEON_INSTALL_DIR}/bin/sentieon driver -r ${ref_dir}/${fasta} -t $nt -i ${Dedup_bam} --algo CoverageMetrics --omit_base_output ${sample}_deduped_coverage_metrics --algo MeanQualityByCycle ${sample}_deduped_mq_metrics.txt --algo QualDistribution ${sample}_deduped_qd_metrics.txt --algo GCBias --summary ${sample}_deduped_gc_summary.txt ${sample}_deduped_gc_metrics.txt --algo AlignmentStat ${sample}_deduped_aln_metrics.txt --algo InsertSizeMetricAlgo ${sample}_deduped_is_metrics.txt | |||||
>>> | >>> | ||||
runtime { | runtime { | ||||
dockerTag:docker | |||||
docker:docker | |||||
cluster: cluster_config | cluster: cluster_config | ||||
systemDisk: "cloud_ssd 40" | systemDisk: "cloud_ssd 40" | ||||
dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/" | |||||
dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/" | |||||
} | } | ||||
output { | output { |
task mapping { | task mapping { | ||||
File ref_dir | |||||
String fasta | String fasta | ||||
File ref_dir | |||||
File fastq_1 | File fastq_1 | ||||
File fastq_2 | File fastq_2 | ||||
>>> | >>> | ||||
runtime { | runtime { | ||||
dockerTag:docker | |||||
docker:docker | |||||
cluster: cluster_config | cluster: cluster_config | ||||
systemDisk: "cloud_ssd 40" | systemDisk: "cloud_ssd 40" | ||||
dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/" | dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/" |