String sample | String sample | ||||
String fasta | String fasta | ||||
File? regions | |||||
File Dedup_bam | File Dedup_bam | ||||
File Dedup_bam_index | File Dedup_bam_index | ||||
String db_mills | String db_mills | ||||
export SENTIEON_LICENSE=${SENTIEON_LICENSE} | export SENTIEON_LICENSE=${SENTIEON_LICENSE} | ||||
nt=$(nproc) | nt=$(nproc) | ||||
if [ ${regions} ]; then | |||||
INTERVAL="--interval_list ${regions}" | |||||
else | |||||
INTERVAL="" | |||||
fi | |||||
${SENTIEON_INSTALL_DIR}/bin/sentieon driver -t $nt \ | ${SENTIEON_INSTALL_DIR}/bin/sentieon driver -t $nt \ | ||||
-r ${ref_dir}/${fasta} $INTERVAL \ | |||||
-r ${ref_dir}/${fasta} \ | |||||
-i ${Dedup_bam} \ | -i ${Dedup_bam} \ | ||||
--algo Realigner -k ${dbmills_dir}/${db_mills} ${sample}.sorted.deduped.realigned.bam | --algo Realigner -k ${dbmills_dir}/${db_mills} ${sample}.sorted.deduped.realigned.bam | ||||
--tumor_segments ${sample}.contamination.segments \ | --tumor_segments ${sample}.contamination.segments \ | ||||
${sample}.contamination | ${sample}.contamination | ||||
${SENTIEON_INSTALL_DIR}/bin/sentieon driver -r REFERENCE \ | |||||
${SENTIEON_INSTALL_DIR}/bin/sentieon driver -t $nt \ | |||||
-r ${ref_dir}/${fasta} \ | |||||
--algo TNfilter \ | --algo TNfilter \ | ||||
--tumor_sample ${tumor_name} --normal_sample ${normal_name} \ | --tumor_sample ${tumor_name} --normal_sample ${normal_name} \ | ||||
-v ${sample}.TNseq.TN.tmp.vcf \ | -v ${sample}.TNseq.TN.tmp.vcf \ |
sample=sample_id + '_normal', | sample=sample_id + '_normal', | ||||
docker=sentieon_docker, | docker=sentieon_docker, | ||||
disk_size=disk_size, | disk_size=disk_size, | ||||
regions=regions, | |||||
cluster_config=cluster_config | cluster_config=cluster_config | ||||
} | } | ||||