Browse Source

rename

tags/v0.2.1
LUYAO REN 2 years ago
parent
commit
c4600ca8a1
2 changed files with 6 additions and 3 deletions
  1. +5
    -3
      tasks/mapping.wdl
  2. +1
    -0
      workflow.wdl

+ 5
- 3
tasks/mapping.wdl View File

String SENTIEON_LICENSE String SENTIEON_LICENSE
String group String group
String sample String sample
String project
String user_define_name = sub(basename(fastq_1, "_R1.fastq.gz"), "_R1.fq.gz$", "")
String pl String pl
String docker String docker
String cluster_config String cluster_config
set -e set -e
export SENTIEON_LICENSE=${SENTIEON_LICENSE} export SENTIEON_LICENSE=${SENTIEON_LICENSE}
nt=$(nproc) nt=$(nproc)
${SENTIEON_INSTALL_DIR}/bin/bwa mem -M -R "@RG\tID:${group}\tSM:${sample}\tPL:${pl}" -t $nt -K 10000000 ${ref_dir}/${fasta} ${fastq_1} ${fastq_2} | ${SENTIEON_INSTALL_DIR}/bin/sentieon util sort -o ${sample}.sorted.bam -t $nt --sam2bam -i -
${SENTIEON_INSTALL_DIR}/bin/bwa mem -M -R "@RG\tID:${group}\tSM:${sample}\tPL:${pl}" -t $nt -K 10000000 ${ref_dir}/${fasta} ${fastq_1} ${fastq_2} | ${SENTIEON_INSTALL_DIR}/bin/sentieon util sort -o ${user_define_name}_${project}_${sample}.sorted.bam -t $nt --sam2bam -i -
>>> >>>


runtime { runtime {
dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/" dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
} }
output { output {
File sorted_bam = "${sample}.sorted.bam"
File sorted_bam_index = "${sample}.sorted.bam.bai"
File sorted_bam = "${user_define_name}_${project}_${sample}.sorted.bam"
File sorted_bam_index = "${user_define_name}_${project}_${sample}.sorted.bam.bai"
} }
} }

+ 1
- 0
workflow.wdl View File

fastq_2=fastq_2_D5, fastq_2=fastq_2_D5,
group=project, group=project,
sample='LCL5', sample='LCL5',
project=project,
docker=SENTIEONdocker, docker=SENTIEONdocker,
disk_size=disk_size, disk_size=disk_size,
cluster_config=BIGcluster_config cluster_config=BIGcluster_config

Loading…
Cancel
Save