Giter VIP home page Giter VIP logo

nebiolabs / mark-nonconverted-reads Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 1.0 30 KB

This program examines a BAM or SAM stream for reads that contain multiple Cs in non-CpG context. It markes these reads with a tag (XX:Z:UC) and sets the vendor failed bit to prevent these reads from being used in downstream methylation calling. It also prints summary information to stderr.

License: GNU Affero General Public License v3.0

Python 100.00%

mark-nonconverted-reads's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

avilella

mark-nonconverted-reads's Issues

Soft-clipping at the start of a read results in query_sequence that doesn't match coords

Thanks for the handy tool. Just wanted to flag something, which I noticed today. Haven't fully verified this, but I think there's a bug in the soft-clipping step. For instance, let's say you have a read which is soft-clipped at the beginning. Then when you grab coords = read.get_reference_positions(full_length = True), you get leading Nones. The coords = softclip(coords) removes the Nones from the coords but not from the read.query_sequence. This means that coords.index(coord) no longer refers to the right base in the read sequence.

Let me know if I'm making a dumb mistake, which I probably am. Once I verify I will open a PR, which will probably just involve editing the softclip function to subset the read.query_sequence with the same bounds.

too slow

This tool is a bit too slow for routine use.
Any ideas about how to speed it up?

with the filter jobs:
image

without:
image

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.