Skip to content

Commit

Permalink
upgrade clair3 version, make c3 variants less stringent
Browse files Browse the repository at this point in the history
  • Loading branch information
DarianHole committed Nov 27, 2024
1 parent 0ff60b6 commit d3c94eb
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 13 deletions.
8 changes: 6 additions & 2 deletions bin/cs_vcf_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,12 @@ def check_filter(self, v):
# These seem to not be being pulled out though so check if the qual is none to fail them
if qual == None:
return False
# Temp filter of qual 15, will need to re-evaluate with more data
if qual < 15:
# 2 is the default for clair3 so bump slightly up to 3
if qual < 3:
return False

# Allele fraction > 0.75 required
if len(v.samples) != 1 or v.samples[0].data.AF < 0.75:
return False

if self.no_frameshifts and not in_frame(v):
Expand Down
2 changes: 1 addition & 1 deletion modules/local/nanopore_amplicon/env-clair3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ channels:
- bioconda
- defaults
dependencies:
- bioconda::clair3=1.0.5
- bioconda::clair3=1.0.6
8 changes: 4 additions & 4 deletions modules/local/nanopore_amplicon/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ process CLAIR3_VARIANTS {

conda "${moduleDir}/env-clair3.yml"
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/clair3:1.0.5--py39hf5e1c6e_0' :
'biocontainers/clair3:1.0.5--py39hf5e1c6e_0' }"
'https://depot.galaxyproject.org/singularity/clair3:1.0.6--py39hf5e1c6e_0' :
'biocontainers/clair3:1.0.6--py39hf5e1c6e_0' }"

input:
tuple val(meta), path(bam), path(bai), val(pool), path(pool_bed)
Expand Down Expand Up @@ -174,8 +174,8 @@ process CLAIR3_VARIANTS {
--platform='ont' \\
--model_path="\$MODEL_PATH" \\
--output="${sampleName}-out" \\
--qual=15 \\
--min_coverage=10 \\
--qual=3 \\
--min_coverage=20 \\
--haploid_precise \\
--enable_long_indel \\
--fast_mode \\
Expand Down
2 changes: 1 addition & 1 deletion modules/local/nanopore_shotgun/env-clair3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ channels:
- bioconda
- defaults
dependencies:
- bioconda::clair3=1.0.5
- bioconda::clair3=1.0.6
8 changes: 4 additions & 4 deletions modules/local/nanopore_shotgun/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ process CLAIR3_VARIANTS {

conda "${moduleDir}/env-clair3.yml"
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/clair3:1.0.5--py39hf5e1c6e_0' :
'biocontainers/clair3:1.0.5--py39hf5e1c6e_0' }"
'https://depot.galaxyproject.org/singularity/clair3:1.0.6--py39hf5e1c6e_0' :
'biocontainers/clair3:1.0.6--py39hf5e1c6e_0' }"

input:
tuple val(meta), path(bam), path(bai)
Expand Down Expand Up @@ -171,8 +171,8 @@ process CLAIR3_VARIANTS {
--platform='ont' \\
--model_path="\$MODEL_PATH" \\
--output="${sampleName}-out" \\
--qual=15 \\
--min_coverage=10 \\
--qual=2 \\
--min_coverage=20 \\
--haploid_precise \\
--enable_long_indel \\
--fast_mode \\
Expand Down
2 changes: 1 addition & 1 deletion nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ manifest {
description = """Assemble and QC viral reads"""
mainScript = 'main.nf'
nextflowVersion = '!>=23.04.0'
version = '1.1.0'
version = '1.1.1'
doi = ''
defaultBranch = 'main'
}
Expand Down

0 comments on commit d3c94eb

Please sign in to comment.