Giter VIP home page Giter VIP logo

Comments (5)

gkarthik avatar gkarthik commented on May 25, 2024 1

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.

svarona avatar svarona commented on May 25, 2024 1

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.

gkarthik avatar gkarthik commented on May 25, 2024

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.

drpatelh avatar drpatelh commented on May 25, 2024

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.

drpatelh avatar drpatelh commented on May 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.