Excel report from viral sequencing analysis output
Project description
xlavir
Excel report from viral sequencing data analysis output from the nf-core/viralrecon or peterk87/nf-virontus Nextflow pipelines.
Free software: MIT license
Documentation: https://xlavir.readthedocs.io.
Features
- Collect sample results from a nf-core/viralrecon or peterk87/nf-virontus into a Excel report
QA/QC of sample analysis results (basic PASS/FAIL based on minimum genome coverage and depth)
Nextflow workflow execution information
Prepend worksheets from other Excel documents into the report (e.g. cover page/sheet, sample sheet, lab results)
Add custom images into worksheets with custom names and descriptions (e.g. phylogenetic tree figure PNG)
Roadmap
Bcftools variant calling stats sheet
Sample metadata table to merge with certain stats?
YAML config to info sheet?
coverage chart with controls?
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.6.0 (2022-01-05)
Add support for reading annotated Medaka VCF files (medaka_variant VCF annotated with medaka tools annotate)
Changed mutation string format to {gene}:{AA change} ({NT change}{extra}) if there is a AA change
Added low coverage filtering of variants for Medaka VCF
“Variants Summary” table now sorted by nucleotide position
0.5.3 (2021-11-09)
Fixed shorter consensus sequences not being written to report
Improve nf-virontus VCF compatibility
0.5.2 (2021-11-08)
Fixes and changes from PR #15
Fixes:
low coverage coordinate output off by one (xlavir.tools.mosdepth.get_interval_coords_bed)
error on no Pangolin reports found (e.g. non-SARS-CoV-2 report) (xlavir.tools.pangolin.get_info)
user QC thresholds not being used (xlavir.xlavir.run)
not showing all QC fail comments (xlavir.qc.create_qc_stats_dataframe)
consensus sequences being too long for Excel cell character limit (32,767 characters); longer sequences are chunked into 80 character segments with one segment per line in consensus sheet (xlavir.tools.consensus.read_fasta)
Changes:
Ignore and skip unsupported VCFs instead of throwing NotImplementedError (xlavir.tools.variants.get_info)
In consensus sheet, only add QC comments on FASTA header rows if necessary (xlavir.io.xl.add_comments)
0.5.1 (2021-08-04)
Fixed issue (#12) where iVar ref allele depth corresponds to depth of base before deletion. For indels, ref allele depth is taken from the total depth minus the alt allele depth.
Fixed issue (#14) where the total number of reads from samtools flagstat may not be the true number of reads. The unmapped reads may be excluded from the BAM file so the samtools flagstat total number of reads may be equal to the number of mapped reads. There is now a search for fastp JSON files to get the true total number of reads.
0.5.0 (2021-07-30)
Added support for Nanopolish VCF parsing as generated by the ARTIC pipeline
Added deduplication of VCF and SnpSift entries since the ARTIC pipeline may produce VCF files with duplicate variant calls due to overlap between amplicons.
Added VCF and SnpSift test data for CLI test to generate Excel report.
0.4.3 (2021-07-29)
Fix an issue where single base positions are being reported as 0-based when all other ranges are 1-based for reporting of low/no coverage regions from Mosdepth per-base BED files (#10).
0.4.2 (2021-05-21)
Add support for nf-core/viralrecon version 2.0 (requires Mosdepth bed.gz files be output; needs custom modules.config like this one)
Nextclade CLI per sample results parsed into sheet showing useful info like Nextstrain clade, # of mutations, # of PCR primer changes
Added check that input directory exists and is a directory
Added sheet with xlavir info
Added Gene, Variant Effect, Variant Impact, Amino Acid Change to Variant Summary table
0.4.1 (2021-05-14)
Add reference sequence length to QC stats table. Get ref seq length from max mosdepth per base BED coverage value.
Add more conditional formatting
Fix execution_report.html finding
Fix version printing; add to help
Add epilog with usage info
0.4.0 (2021-04-23)
Adds “Variants Summary” sheet summarizing variant information across all samples
Adds comments to AF values in “Variant Matrix” sheet
Fixes width/height of cell comments to be based on length of comment text
0.3.0 (2021-04-23)
Adds support for adding Ct values from a Ct values table (tab-delimited, CSV, ODS, XLSX format) into an xlavir report.
0.2.4 (2021-04-19)
Fixes issue with SnpSift table file parsing and variable naming in variants.py (#4, #5)
0.2.3 (2021-04-19)
Fixes issue with SnpSift table file parsing. Adds check to see if SnpSift column is dtype object/str before using .str Series methods (#4)
0.2.2 (2021-03-30)
Fixes issue with SnpEff/SnpSift AA change parsing.
0.2.1 (2021-03-29)
Fix division by zero error due to variants with DP values of 0
0.2.0 (2021-03-04)
0.1.1 (2021-02-16)
- Collect sample results from a nf-core/viralrecon or peterk87/nf-virontus into a Excel report
iVar VCF parsing
QA/QC of sample analysis results (basic PASS/FAIL based on minimum genome coverage and depth)
Nextflow workflow execution information
Prepend worksheets from other Excel documents into the report (e.g. cover page/sheet, sample sheet, lab results)
Add custom images into worksheets with custom names and descriptions (e.g. phylogenetic tree figure PNG)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file xlavir-0.6.0.tar.gz
.
File metadata
- Download URL: xlavir-0.6.0.tar.gz
- Upload date:
- Size: 1.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 572a9a840b6820667a97299bd2e62a518ff268f462510643944ace9dca335582 |
|
MD5 | ccd705cf3a838ea9b6a428166395f88a |
|
BLAKE2b-256 | 2c42f813c81a80de78dc8a0aad8e5837f115d80c850e1bd85fdd939c735b825c |
Provenance
File details
Details for the file xlavir-0.6.0-py2.py3-none-any.whl
.
File metadata
- Download URL: xlavir-0.6.0-py2.py3-none-any.whl
- Upload date:
- Size: 34.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18853303262830ff882c54022182d37bcf702f4e519e39dc4ffcd7be0b8645ff |
|
MD5 | 7d69ecb2bde1c10d7c787b8f2639ac95 |
|
BLAKE2b-256 | e8eb498d06b27b502544cf7f354427ee35907d8c49e90ebc778f617e4284179b |