Giter VIP home page Giter VIP logo

rlsim's People

Contributors

bsipos avatar jergosh avatar sbotond avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

rlsim's Issues

A couple questions about fragmentation

There are two implementation details of FragAfterPrim, that aren't necessarily bugs, but I don't quite understand. I'm hoping you can shed some light.

First is this:

    nrBreaks := rand.Poisson(rate) - 1
    if nrBreaks <= 0 {
        nrBreaks = 1
    }

Why isn't nrBreaks := rand.Poisson(rate) sufficient? You're drawing from a poisson as an approximate binomial, under the assumption that breakpoints occur at any position with some constant probability. But the number of breakpoints under this scheme is non-linear in the transcript length, which is difficult to account for:

breakpoints

Second, possibly related:

FRAG:
    for i := 0; i < len(breaks)-2; i++ {

This skips the last fragment, resulting in a depletion of fragments at the 3' end of the transcript. Was that intentional? Is there reason to believe that fragments can't be primed after the last breakpoint?

Sorry to bombard you with super-specific questions. Rlsim is by far the best rna-seq simulator I've used, and I want to make sure it's behavior in these cases is plausible before I either try to account for it in my quantification model, or make tweaks to rlsim.

A question on PCR

Is there any way to recover the original molecule that produces the final PCR fragments? I would like to simulate an RNA-seq dataset and know which fragments come from the same molecule (and thus are PCR duplicates).

If I open the fas file produced by rlsim, I see that for all fragments belonging to the same gene, they are numbers from Fg_1 all the way to Fg_n, but there does not seem to be a way to figure out which are PCR duplicates.

Thanks!

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.