Skip to content
Snippets Groups Projects
Commit 920b85d5 authored by Brandi Cantarel's avatar Brandi Cantarel
Browse files

bug fixes new workflow

parent 0270fd9c
No related merge requests found
...@@ -52,7 +52,7 @@ then ...@@ -52,7 +52,7 @@ then
targets="${index_path}/panel1385V2-2.cnvkit_" targets="${index_path}/panel1385V2-2.cnvkit_"
elif [[ $capture == "${index_path}/hemepanelV3.bed" ]] elif [[ $capture == "${index_path}/hemepanelV3.bed" ]]
then then
normals="${index_path}/hemepanelV3.flatreference.cnn" normals="${index_path}/hemepanelV3.panelofnormals.cnn"
targets="${index_path}/hemepanelV3.cnvkit_" targets="${index_path}/hemepanelV3.cnvkit_"
fi fi
......
...@@ -58,7 +58,8 @@ fi ...@@ -58,7 +58,8 @@ fi
source /etc/profile.d/modules.sh source /etc/profile.d/modules.sh
module load gatk/4.1.2.0 samtools/gcc/1.8 module load gatk/4.1.2.0 samtools/gcc/1.8
samtools index -@ $SLURM_CPUS_ON_NODE ${sbam} which samtools
/cm/shared/apps/samtools/gcc/1.8/bin/samtools index -@ $SLURM_CPUS_ON_NODE ${sbam}
if [[ $algo == 'gatkbam_rna' ]] if [[ $algo == 'gatkbam_rna' ]]
then then
...@@ -70,12 +71,12 @@ then ...@@ -70,12 +71,12 @@ then
gatk SplitNCigarReads -R ${reffa} -I ${pair_id}.rg_added_sorted.bam -O ${pair_id}.split.bam gatk SplitNCigarReads -R ${reffa} -I ${pair_id}.rg_added_sorted.bam -O ${pair_id}.split.bam
gatk --java-options "-Xmx32g" BaseRecalibrator -I ${pair_id}.split.bam --known-sites ${index_path}/dbSnp.gatk4.vcf.gz -R ${reffa} -O ${pair_id}.recal_data.table --use-original-qualities gatk --java-options "-Xmx32g" BaseRecalibrator -I ${pair_id}.split.bam --known-sites ${index_path}/dbSnp.gatk4.vcf.gz -R ${reffa} -O ${pair_id}.recal_data.table --use-original-qualities
gatk --java-options "-Xmx32g" ApplyBQSR -I ${pair_id}.split.bam -R ${reffa} -O ${pair_id}.final.bam --use-original-qualities -bqsr ${pair_id}.recal_data.table gatk --java-options "-Xmx32g" ApplyBQSR -I ${pair_id}.split.bam -R ${reffa} -O ${pair_id}.final.bam --use-original-qualities -bqsr ${pair_id}.recal_data.table
samtools index -@ $SLURM_CPUS_ON_NODE ${pair_id}.final.bam /cm/shared/apps/samtools/gcc/1.8/bin/samtools index -@ $SLURM_CPUS_ON_NODE ${pair_id}.final.bam
elif [[ $algo == 'gatkbam' ]] elif [[ $algo == 'gatkbam' ]]
then then
gatk --java-options "-Xmx32g" BaseRecalibrator -I ${sbam} --known-sites ${index_path}/dbSnp.gatk4.vcf.gz -R ${reffa} -O ${pair_id}.recal_data.table --use-original-qualities gatk --java-options "-Xmx32g" BaseRecalibrator -I ${sbam} --known-sites ${index_path}/dbSnp.gatk4.vcf.gz -R ${reffa} -O ${pair_id}.recal_data.table --use-original-qualities
gatk --java-options "-Xmx32g" ApplyBQSR -I ${sbam} -R ${reffa} -O ${pair_id}.final.bam --use-original-qualities -bqsr ${pair_id}.recal_data.table gatk --java-options "-Xmx32g" ApplyBQSR -I ${sbam} -R ${reffa} -O ${pair_id}.final.bam --use-original-qualities -bqsr ${pair_id}.recal_data.table
samtools index -@ $SLURM_CPUS_ON_NODE ${pair_id}.final.bam /cm/shared/apps/samtools/gcc/1.8/bin/samtools index -@ $SLURM_CPUS_ON_NODE ${pair_id}.final.bam
elif [[ $algo == 'abra2' ]] elif [[ $algo == 'abra2' ]]
then then
......
...@@ -84,7 +84,7 @@ then ...@@ -84,7 +84,7 @@ then
vcf-concat fb.*.vcf | vcf-sort | vcf-annotate -n --fill-type | bcftools norm -c s -f ${reffa} -w 10 -O z -o ${pair_id}.freebayes.vcf.gz - vcf-concat fb.*.vcf | vcf-sort | vcf-annotate -n --fill-type | bcftools norm -c s -f ${reffa} -w 10 -O z -o ${pair_id}.freebayes.vcf.gz -
elif [[ $algo == 'gatk' ]] elif [[ $algo == 'gatk' ]]
then then
gatk4_dbsnp=${index_path}/clinseq_prj/dbSnp.gatk4.vcf.gz gatk4_dbsnp=/project/shared/bicf_workflow_ref/human/GRCh38/clinseq_prj/dbSnp.gatk4.vcf.gz
user=$USER user=$USER
module load gatk/4.1.2.0 module load gatk/4.1.2.0
gvcflist='' gvcflist=''
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment