Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A couple questions about fragmentation #2

Open
dcjones opened this issue Feb 16, 2015 · 0 comments
Open

A couple questions about fragmentation #2

dcjones opened this issue Feb 16, 2015 · 0 comments

Comments

@dcjones
Copy link

dcjones commented Feb 16, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant