Skip to content

Commit

Permalink
Merge branch 'handle-no-calls' into 'dev'
Browse files Browse the repository at this point in the history
Ignore value errors from vcf fetch

See merge request epi2melabs/workflow-containers/wf-artic!69
  • Loading branch information
Thomas Rich committed Nov 17, 2021
2 parents 1ca4e5a + fe98f99 commit 7101ea6
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 18 deletions.
12 changes: 4 additions & 8 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,15 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [unreleased]
### Added
- `--report_debug` flag to show additional coverage plots
- Parsing of sample sheet to include a `type` column
### Changes
- `sample_name` changed to `sample_id` throughout

## [v0.3.5]
### Added
- Error report if no data at all.
- Telemetry JSON.
- Nextclade errors output as seperate table.

- `--report_debug` flag to show additional coverage plots
- Parsing of sample sheet to include a `type` column
### Changes
- `sample_name` changed to `sample_id` throughout

## [v0.3.4]
### Added
Expand Down
21 changes: 12 additions & 9 deletions bin/output_telemetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,15 +177,18 @@ def build_telemetry(
primer[OVERLAP].append(per_base_count_alt)

# Cheekily grab calls from overlaps whilst we're at it
for call in vcf.fetch(
reference_name, base.pos-1, base.pos):
primer[CALLS].append({
POS: call.pos,
QUAL: call.qual,
REF: call.ref,
ALT: call.alts,
POOL: call.info.get('Pool')
})
try:
for call in vcf.fetch(
reference_name, base.pos-1, base.pos):
primer[CALLS].append({
POS: call.pos,
QUAL: call.qual,
REF: call.ref,
ALT: call.alts,
POOL: call.info.get('Pool')
})
except ValueError:
pass

# Calculate additional summary stats
if per_base_count > 20:
Expand Down
2 changes: 1 addition & 1 deletion nextflow_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@
},
"wfversion": {
"type": "string",
"default": "v0.3.3",
"default": "v0.3.5",
"hidden": true
},
"pangolin_version": {
Expand Down

0 comments on commit 7101ea6

Please sign in to comment.