Skip to content
Snippets Groups Projects
Unverified Commit 16f01d2f authored by Laurent Modolo's avatar Laurent Modolo
Browse files

SNP_calling.nf: fix format

parent 12be019b
No related branches found
No related tags found
No related merge requests found
...@@ -34,10 +34,10 @@ profiles { ...@@ -34,10 +34,10 @@ profiles {
container = "samtools:1.7" container = "samtools:1.7"
} }
withName: samtools_SNP_tumor { withName: samtools_SNP_tumor {
container = "samtools:1.7" container = "bcftools:1.7"
} }
withName: samtools_SNP_norm { withName: samtools_SNP_norm {
container = "samtools:1.7" container = "bcftools:1.7"
} }
withName: vcf_to_csv_tumor { withName: vcf_to_csv_tumor {
container = "gatk:4.0.8.1" container = "gatk:4.0.8.1"
......
...@@ -355,7 +355,8 @@ process samtools_SNP_tumor { ...@@ -355,7 +355,8 @@ process samtools_SNP_tumor {
script: script:
""" """
samtools mpileup -AE -uf ${fasta} ${bam_tumor} | \ bcftools mpileup -AE -f ${fasta} ${bam_tumor} --output-type v \
-a FORMAT/AD,FORMAT/ADF,FORMAT/ADR,FORMAT/DP,FORMAT/SP,INFO/AD,INFO/ADF,INFO/ADR | \
bcftools call -mv --output-type v > ${file_id_tumor}_raw.vcf bcftools call -mv --output-type v > ${file_id_tumor}_raw.vcf
bcftools filter -s LowQual -e '%QUAL<20 || DP>100' ${file_id_tumor}_raw.vcf \ bcftools filter -s LowQual -e '%QUAL<20 || DP>100' ${file_id_tumor}_raw.vcf \
> ${file_id_tumor}_filtered.vcf > ${file_id_tumor}_filtered.vcf
...@@ -379,7 +380,8 @@ process samtools_SNP_norm { ...@@ -379,7 +380,8 @@ process samtools_SNP_norm {
script: script:
""" """
samtools mpileup -AE -uf ${fasta} ${bam_norm} | \ bcftools mpileup -AE -f ${fasta} ${bam_norm} --output-type v \
-a FORMAT/AD,FORMAT/ADF,FORMAT/ADR,FORMAT/DP,FORMAT/SP,INFO/AD,INFO/ADF,INFO/ADR | \
bcftools call -mv --output-type v > ${file_id_norm}_raw.vcf bcftools call -mv --output-type v > ${file_id_norm}_raw.vcf
bcftools filter -s LowQual -e '%QUAL<20 || DP>100' ${file_id_norm}_raw.vcf \ bcftools filter -s LowQual -e '%QUAL<20 || DP>100' ${file_id_norm}_raw.vcf \
> ${file_id_norm}_filtered.vcf > ${file_id_norm}_filtered.vcf
...@@ -400,10 +402,10 @@ process vcf_to_csv_tumor { ...@@ -400,10 +402,10 @@ process vcf_to_csv_tumor {
script: script:
""" """
gatk VariantsToTable -V ${file_id_tumor}_raw.vcf \ gatk VariantsToTable -V ${file_id_tumor}_raw.vcf \
-F CHROM -F POS -F TYPE -GF GT -GF AD -GF AF \ -F CHROM -F POS -F TYPE -GF GT -GF AD -F AD -F DP \
-O ${file_id_tumor}_raw.csv -O ${file_id_tumor}_raw.csv
gatk VariantsToTable -V ${file_id_tumor}_filtered.vcf \ gatk VariantsToTable -V ${file_id_tumor}_filtered.vcf \
-F CHROM -F POS -F TYPE -GF GT -GF AD -GF AF \ -F CHROM -F POS -F TYPE -GF GT -GF AD -F AD -F DP \
-O ${file_id_tumor}_filtered.csv -O ${file_id_tumor}_filtered.csv
""" """
} }
...@@ -422,10 +424,10 @@ process vcf_to_csv_norm { ...@@ -422,10 +424,10 @@ process vcf_to_csv_norm {
script: script:
""" """
gatk VariantsToTable -V ${file_id_norm}_raw.vcf \ gatk VariantsToTable -V ${file_id_norm}_raw.vcf \
-F CHROM -F POS -F TYPE -GF GT -GF AD -GF AF \ -F CHROM -F POS -F TYPE -GF GT -GF AD -F AD -F DP \
-O ${file_id_norm}_raw.csv -O ${file_id_norm}_raw.csv
gatk VariantsToTable -V ${file_id_norm}_filtered.vcf \ gatk VariantsToTable -V ${file_id_norm}_filtered.vcf \
-F CHROM -F POS -F TYPE -GF GT -GF AD -GF AF \ -F CHROM -F POS -F TYPE -GF GT -GF AD -F AD -F DP \
-O ${file_id_norm}_filtered.csv -O ${file_id_norm}_filtered.csv
""" """
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment