GithubHelp home page GithubHelp logo

akikuno / cstag Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 0.0 14.61 MB

Python module to manipulate and visualize minimap2's cs tag

Home Page: https://akikuno.github.io/cstag/cstag

License: MIT License

Python 90.76% Shell 0.54% HTML 8.71%
bioinformatics python sequence minimap2 sam cstag

cstag's People

Contributors

akikuno avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cstag's Issues

Implement cstag.consensus()

複数のcstagのconsensusを作る関数

Example

import cstag
cs_list = ["cs:Z:=ACGT", "cs:Z:=AC*gt*T", "cs:Z:=AC*gt*T"]
cstag.consensus(cs_list)
# cs:Z:=AC*gt*T

is it possible to have the `consensus` function allow some requirements re level of agreement in a consensus?

Not sure if this is feasible to implement, but I wanted to make this request which would make cstag more useful to our group.

Right now the consensus function doesn't contain any mechanism for checking the "quality" of the consensus. In our work, we often want to try to call a consensus, but also be able to discard sets of reads if the consensus isn't in good agreement. This is common in sequencing of amplicons for many purposes. Eg, we would ideally like:

  1. Return the consensus if the individual cs tags agree at at least some level that could be different from majority voting. (eg, maybe we say 75% have to agree). If they don't, provide some indication consensus should be dropped.
  2. Similarly be able to report the maximal edit distance of any one tag from the others.

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.