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
40a19885
Unverified
Commit
40a19885
authored
6 years ago
by
Laurent Modolo
Browse files
Options
Downloads
Patches
Plain Diff
SNP_calling.nf: working pipeline with BWA MEM
parent
36fafd89
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/SNP_calling.nf
+18
-5
18 additions, 5 deletions
src/SNP_calling.nf
with
18 additions
and
5 deletions
src/SNP_calling.nf
+
18
−
5
View file @
40a19885
...
...
@@ -183,6 +183,7 @@ collect_sorted_bam_file = Channel.create()
process merge_bam {
tag "$file_id"
cpus 4
publishDir "results/mapping/bam/", mode: 'copy'
input:
set file_id, file(bam) from collect_sorted_bam_file
...
...
@@ -297,16 +298,19 @@ final_indexed_bam_files_tumor.into{
pileup_index_bam_files_tumor
}
final_fasta_file.into{
haplo_fasta_file
artifact_fasta_file
haplo_fasta_file;
artifact_fasta_file;
filter_fasta_file
}
indexed2_fasta_file.into{
haplo_indexed2_fasta_file
artifact_indexed2_fasta_file
haplo_indexed2_fasta_file;
artifact_indexed2_fasta_file;
filter_indexed2_fasta_file
}
indexed3_fasta_file.into{
haplo_indexed3_fasta_file;
artifact_indexed3_fasta_file
artifact_indexed3_fasta_file;
filter_indexed3_fasta_file
}
process HaplotypeCaller {
...
...
@@ -428,6 +432,9 @@ process filter_SNP {
input:
set file_id_norm, file(vcf) from filter_vcf_files
set fileidx_id_norm, file(vcfid) from filter_index_vcf_files
set genome_id, file(fasta) from filter_fasta_file
set genome2_idx, file(fasta2idx) from filter_indexed2_fasta_file
set genome3_idx, file(fasta3idx) from filter_indexed3_fasta_file
output:
set file_id_norm, "*.vcf" into vcf_files_filtered
...
...
@@ -439,6 +446,12 @@ gatk FilterMutectCalls \
-V ${vcf} \
-O ${file_id_norm}_filtered.vcf \
2> ${file_id_norm}_filter_report.txt
gatk SelectVariants \
-R ${fasta} \
--variant ${file_id_norm}_filtered.vcf \
--exclude-filtered \
-O ${file_id_norm}_filtered_pass.vcf \
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