Comments (5)
I think samtools has been writing code to do the same primer trimming and get stats for each amplicon - samtools/samtools#1261. Not quite sure of other tools though!
from viralrecon.
We made something similar, not as cool but maybe you can find it helpful. We have the scripts here https://github.com/BU-ISCIII/SARS-Cov2_analysis/tree/master/Illumina-amplicons/13-amplicon_plots
We perform first bedtools coverage to obtain the depth and coverage of the amplicons, for this we use a modified .bed with the start and end position of the amplicons for both forward and reverse primers. In the case that for the same amplicon there were both normal and altered positions, we took the longest one. To create this file we just took the original .bed file and parsed it, so for the same amplicon instead of having one line for the RIGHT and another line for the LEFT we have just one amplicon per line. Then we use R to create the plots.
from viralrecon.
The log only reports reads from which primers were trimmed off but with NextEra to get the true counts you will have to check reads that start and end within the left and right primers of an amplicon. Will require some tweaking of code to log that as well but unfortunately I'm rather occupied with other SARS-CoV-2 things at the moment.
from viralrecon.
No worries! Thanks alot for the rapid response as always @gkarthik 😎 Agreed, crazy times! Are you aware of any scripts I can use to do such a thing or get an idea as to which tools to use to generate the plots? I have an idea but would rather avoid re-inventing the wheel.
from viralrecon.
Initial implementation in #119
So I wrote a custom script to collapse the amplicon bed files based on some sort of standard naming convention for left and right primers in the BED file. Works with all of the ARTIC BED files.
Was very easy to use mosdepth
to get genome-wide coverage in 200bp windows as well as per-amplicon coverage and then to plot in R
. Some examples in this comment.
from viralrecon.
Related Issues (20)
- Incorrect depth from ivar variants reported in variants long table HOT 2
- Missing conda package for ivar_variants_to_vcf.nf HOT 2
- Add subworkflows to nf-core
- Add support for artic primer set version V5.3.2 HOT 11
- Custom .yaml and .txt for MultiQC and pangolin/nextclade version changes (-c error) HOT 1
- -[nf-core/viralrecon] Pipeline completed with errors- Error executing process > 'NFCORE_VIRALRECON:NANOPORE:ARTIC_MINION (SRX12373518)' Caused by: Process `NFCORE_VIRALRECON:NANOPORE:ARTIC_MINION (SRX12373518)` terminated with an error exit status (20) HOT 2
- Suggestions regarding BLAST step
- ERROR picard container for NFCORE_VIRALRECON:ILLUMINA:PICARD_COLLECTMULTIPLEMETRICS -> setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or directory HOT 1
- Minia assembly is non-deterministic in parallel HOT 1
- Minimum frequency threshold is being ignored HOT 1
- ERROR ~ Error executing process > 'NFCORE_VIRALRECON:NANOPORE:ARTIC_MINION'
- [bug] Fails to find FASTQ files when stored on S3
- epi2me-labs/wf-cnv failed during analysis HOT 7
- Allow viralrecon to take gtf as input annotation file
- primer_set is not taking param
- Artic v5 mismatched primer names in artic-ncov2019 repo cause certain amplicons to be erroneously filtered/removed
- Add QIAseq DIRECT SARS-CoV-2 Kit amplicons
- Argument input-fasta is missing in NFCORE_VIRALRECON:ILLUMINA:CONSENSUS_BCFTOOLS:CONSENSUS_QC:NEXTCLADE_RUN" HOT 4
- Problem installing viralrecon
- Adding "aggregate" and "plot" methods in the freyja subworkflow HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from viralrecon.