Code Monkey home page Code Monkey logo

variant-flowfish's People

Contributors

engreitz avatar ktheguo avatar lampburglar avatar michaelmont94 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

variant-flowfish's Issues

make_count_tables refactor

  • outline:
    • for each sample:
      • match variants with .str.contains() and remove from sample
      • from the rest, choose the most frequent refAllele as the "true" reference and quantify mismatches with Aligned_Sequence
    • collect variants and references from each sample, aggregate and create count tables.
  • todos:
    • add mismatch function from @engreitz
    • plot mismatches in reference

fix make_count_tables.smk

In https://github.com/EngreitzLab/variant-flowfish/blob/main/workflow/rules/make_count_tables.smk:

  • In this line -
    ref_seq = allele_tbl.loc[allele_tbl['Aligned_Sequence'] == allele_tbl['Reference_Sequence'], 'Reference_Sequence'].values[0]
    is it supposed to be exact matching Aligned_Sequence and Reference_Sequence? Seems like in tests, there aren't any matches which breaks the code.
    • From @lampburglar: If our amplicon is ~250 nucleotides long then the probability having an amplicon without any substitutions is .99^250 or ~8% which makes it seem like you should still be able to find an exact match amongst the 100K reads that there will be. There must be some unstable region in the amplicon that yields lots of background error.
    • I am rerunning CRISPResso and the rest of the pipeline. We were thinking that we can just check the region that there is supposed to be the edit, and if just this region is an exact match then the sequence can be considered an unedited reference sequence.
  • separate out functions as another script in scripts/

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.