Skip to content
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

Add MTB_L10 reference in the bundled GVCF #200

Merged
merged 3 commits into from
Jun 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -309,9 +309,9 @@ containing GVCF reference dataset for ~600 samples is provided for augmenting sm


```
use_ref_exit_rif_gvcf = false
ref_exit_rif_gvcf = "/path/to/FILE.g.vcf.gz"
ref_exit_rif_gvcf_tbi = "/path/to/FILE.g.vcf.gz.tbi"
use_ref_gvcf = false
ref_gvcf = "/path/to/FILE.g.vcf.gz"
ref_gvcf_tbi = "/path/to/FILE.g.vcf.gz.tbi"
```

> :bulb: **Custom GVCF dataset**: <br>
Expand Down
2 changes: 1 addition & 1 deletion conf/test.config
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ params {
compute_minor_variants = true
dataset_is_not_contaminated = true

use_ref_exit_rif_gvcf = false
use_ref_gvcf = false

//The path to resistance database to use for resistance calling
resistance_db = "NONE"
Expand Down
8 changes: 4 additions & 4 deletions default_params.config
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ vcf_name = "joint"

// NOTE: Got little genetic diveristy in your dataset? (.e.g clonal or <20 samples) - use the EXIT-RIF GVCF file to include additional samples.

use_ref_exit_rif_gvcf = true
ref_exit_rif_gvcf = "${projectDir}/resources/ref_gvcfs/LineagesAndOutgroup.g.vcf.gz"
ref_exit_rif_gvcf_tbi = "${projectDir}/resources/ref_gvcfs/LineagesAndOutgroup.g.vcf.gz.tbi"
use_ref_gvcf = true
ref_gvcf = "${projectDir}/resources/ref_gvcfs/LineagesAndOutgroup.g.vcf.gz"
ref_gvcf_tbi = "${projectDir}/resources/ref_gvcfs/LineagesAndOutgroup.g.vcf.gz.tbi"

// ##### The follow sections generally do not require adjusting. #####

Expand Down Expand Up @@ -69,7 +69,7 @@ skip_minor_variants_gatk = true
//=========================================

// Use this flag to disable downstream phylogenetic of merged GVCF
skip_phylogeny_and_clustering = true //OR false
skip_phylogeny_and_clustering = false //OR false

// Use this flag to enable downstream analysis of merged GVCF
skip_complex_regions = true //OR true
Expand Down
2 changes: 1 addition & 1 deletion modules/gatk/combine_gvcfs.nf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ process GATK_COMBINE_GVCFS {

script:

def optionalRefExitRifGvcf = ( params.use_ref_exit_rif_gvcf ) ? " --variant ${ref_exit_rif_gvcf} " : ""
def optionalRefExitRifGvcf = ( params.use_ref_gvcf ) ? " --variant ${ref_exit_rif_gvcf} " : ""

"""
${params.gatk_path} CombineGVCFs --java-options "-Xmx${task.memory.giga}G" \\
Expand Down
Binary file removed resources/ref_gvcfs/LineagesAndOutgroup.g.vcf.gz
Binary file not shown.
Binary file removed resources/ref_gvcfs/LineagesAndOutgroup.g.vcf.gz.tbi
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions workflows/subworkflows/prepare_cohort_vcf.nf
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ workflow PREPARE_COHORT_VCF {
.dump(tag: "PREPARE_COHORT_VCF gvcfs_string_ch:", pretty: true)


if (params.use_ref_exit_rif_gvcf) {
if (params.use_ref_gvcf) {
refExitRifGvcf = file(params.ref_exit_rif_gvcf, checkIfExists: true)
} else {
refExitRifGvcf = []
}

if (params.use_ref_exit_rif_gvcf) {
if (params.use_ref_gvcf) {
refExitRifGvcfTbi = file(params.ref_exit_rif_gvcf_tbi, checkIfExists: true)
} else {
refExitRifGvcfTbi = []
Expand Down