-
Notifications
You must be signed in to change notification settings - Fork 0
add freebayes functionality #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| process freebayes { | ||
| label 'process_high' | ||
| conda "bioconda::freebayes=1.3.6 bioconda::bcftools=1.21" | ||
| tag "$library" | ||
|
|
||
| input: | ||
| tuple val(library), path(bam), path(bai) | ||
| path(fasta) | ||
| path(fai) | ||
| val(target_bed) | ||
|
|
||
| output: | ||
| tuple val(library), path("*.vcf.gz"), path("*.vcf.gz.tbi"), emit: vcf | ||
| tuple val(library), path("*.flt.vcf.gz"), path("*.flt.vcf.gz.tbi"), emit: filtered_vcf | ||
|
|
||
| script: | ||
|
|
||
| """ | ||
| freebayes-parallel <(fasta_generate_regions.py ${fai} 100000) $task.cpus \\ | ||
| -f $fasta \\ | ||
| $bam \\ | ||
| --min-base-quality 1 \\ | ||
| > ${library}.vcf | ||
|
|
||
| cat ${library}.vcf | bcftools view -i 'QUAL > $params.freebayes_qual_filter' > ${library}.flt.vcf | ||
| bgzip ${library}.flt.vcf | ||
| tabix ${library}.flt.vcf.gz | ||
|
|
||
| bgzip ${library}.vcf | ||
| tabix ${library}.vcf.gz | ||
|
|
||
| """ | ||
| } |
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. going to default to outputting to the process name, so strelka and freebayes go to separate folders |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,6 +14,8 @@ params { | |
| outdir = 'results' | ||
| tracedir = "${params.outdir}/pipeline_info" | ||
| run_strelka = true | ||
| run_freebayes = true | ||
| freebayes_qual_filter = 15 // default quality filter for freebayes output. | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. freebayes didn't have a standard quality filtering like strelka, so we used a basic quality filter to discard lots of false positive variants before running the concordance analysis. |
||
| run_happy = true | ||
| target_bed = null | ||
| happy_truth_vcf = null | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a future update could include running freebayes on only the target regions but if I recall we had some issues scaling that up and ended up running it on everything then filtering after.