Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
JU28_59vs17_SNP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LBMC
Delattre
JU28_59vs17_SNP
Commits
f7ba71e6
Unverified
Commit
f7ba71e6
authored
6 years ago
by
Laurent Modolo
Browse files
Options
Downloads
Patches
Plain Diff
SNP_calling: add vcf to csv conversion step
parent
61f2438d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/SNP_calling.config
+6
-0
6 additions, 0 deletions
src/SNP_calling.config
src/SNP_calling.nf
+51
-8
51 additions, 8 deletions
src/SNP_calling.nf
with
57 additions
and
8 deletions
src/SNP_calling.config
+
6
−
0
View file @
f7ba71e6
...
...
@@ -39,6 +39,12 @@ profiles {
withName
:
samtools_SNP_norm
{
container
=
"samtools:1.7"
}
withName
:
vcf_to_csv_tumor
{
container
=
"gatk:4.0.8.1"
}
withName
:
vcf_to_csv_norm
{
container
=
"gatk:4.0.8.1"
}
withName
:
HaplotypeCaller
{
container
=
"gatk:4.0.8.1"
}
...
...
This diff is collapsed.
Click to expand it.
src/SNP_calling.nf
+
51
−
8
View file @
f7ba71e6
...
...
@@ -339,7 +339,7 @@ indexed3_fasta_file.into{
}
process samtools_SNP_tumor {
tag "$file_id_
n
or
m
"
tag "$file_id_
tum
or"
cpus 1
publishDir "results/SNP/vcf_samtools/", mode: 'copy'
...
...
@@ -351,8 +351,7 @@ process samtools_SNP_tumor {
set genome3_idx, file(fasta3idx) from samtools_SNP_indexed3_fasta_file_tumor
output:
set file_id_norm, "*.vcf" into vcf_files_tumor
set file_id_norm, "*.vcf.idx" into index_vcf_files_tumor
set file_id_tumor, "*.vcf" into vcf_files_tumor
file "*_samtools_SNP_report.txt" into samptools_SNP_report_tumor
script:
...
...
@@ -360,7 +359,7 @@ process samtools_SNP_tumor {
samtools mpileup -AE -uf ${fasta} ${bam_tumor} | \
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 \
> ${file_id_tumor}_
raw
.vcf
> ${file_id_tumor}_
filtered
.vcf
"""
}
...
...
@@ -378,7 +377,6 @@ process samtools_SNP_norm {
output:
set file_id_norm, "*.vcf" into vcf_files_norm
set file_id_norm, "*.vcf.idx" into index_vcf_files_norm
file "*_samtools_SNP_report.txt" into samtools_SNP_report_norm
script:
...
...
@@ -386,10 +384,56 @@ process samtools_SNP_norm {
samtools mpileup -AE -uf ${fasta} ${bam_norm} | \
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 \
> ${file_id_norm}_
raw
.vcf
> ${file_id_norm}_
filtered
.vcf
"""
}
process vcf_to_csv_tumor {
tag "$file_id_tumor"
cpus 1
publishDir "results/SNP/vcf_samtools/", mode: 'copy'
input:
set file_id_tumor, file(vcf) from vcf_files_tumor
output:
set file_id_tumor, "*.csv" into csv_files_tumor
script:
"""
gatk VariantsToTable -V ${file_id_tumor}_raw.vcf \
-F CHROM -F POS -F TYPE -GF GT -GF AD -GF AF \
-O ${file_id_tumor}_raw.csv
gatk VariantsToTable -V ${file_id_tumor}_filtered.vcf \
-F CHROM -F POS -F TYPE -GF GT -GF AD -GF AF \
-O ${file_id_tumor}_filtered.csv
"""
}
process vcf_to_csv_norm {
tag "$file_id_norm"
cpus 1
publishDir "results/SNP/vcf_samtools/", mode: 'copy'
input:
set file_id_norm, file(vcf) from vcf_files_norm
output:
set file_id_norm, "*.csv" into csv_files_norm
script:
"""
gatk VariantsToTable -V ${file_id_norm}_raw.vcf \
-F CHROM -F POS -F TYPE -GF GT -GF AD -GF AF \
-O ${file_id_norm}_raw.csv
gatk VariantsToTable -V ${file_id_norm}_filtered.vcf \
-F CHROM -F POS -F TYPE -GF GT -GF AD -GF AF \
-O ${file_id_norm}_filtered.csv
"""
}
/*
process HaplotypeCaller {
tag "$file_id_norm"
cpus 10
...
...
@@ -429,7 +473,6 @@ index_vcf_files.into{
filter_index_vcf_files
}
/*
process GetPileupSummaries {
tag "$file_id_norm"
cpus 1
...
...
@@ -500,7 +543,6 @@ gatk CollectSequencingArtifactMetrics \
2> ${file_id_tumor}_artifact_report.txt
"""
}
*/
process filter_SNP {
tag "$file_id_norm"
...
...
@@ -532,4 +574,5 @@ gatk SelectVariants \
2>> ${file_id_norm}_filter_report.txt
"""
}
*/
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment