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

simulate_experiment cannot handle 0 counts in transcripts #28

Open
roryk opened this issue Nov 4, 2015 · 2 comments
Open

simulate_experiment cannot handle 0 counts in transcripts #28

roryk opened this issue Nov 4, 2015 · 2 comments

Comments

@roryk
Copy link
Contributor

roryk commented Nov 4, 2015

It throws this error if any readspertx counts are zero:

simulate_experiment(fasta_file, reads_per_transcript=readspertx,
                    num_reps=c(10,10), fold_changes=fold_changes,
                    outdir='simulated_reads')
Error in rep(seq_len(length(x)), ...) : invalid 'times' argument
In addition: There were 20 warnings (use warnings() to see them)
> warnings()
Warning messages:
1: In rnbinom(n = length(basemeans), mu = basemeans, size = size) : NAs produced
@anwarMZ
Copy link

anwarMZ commented Jul 5, 2017

Hi,
Any update to using simulate_experiment with 0 counts in transcripts. i want to generate some samples with 0 counts for a particular transcript
Thanks

@aarzalluz
Copy link

aarzalluz commented Sep 28, 2017

I've had a similar issue with 0 counts in transcripts, has this been solved yet?

I know it's a relatively easy fix to just remove zero counts from the count matrix before running simulate_experiment... but it would make it a lot easier if the package tolerated 0 values. Sometimes counts for several samples are in a table where some transcripts are expressed in some samples although not in others. When this is the case, simulating using just the desired column of the data is quick and easy, while editing both the input transcripts file and the count matrix for every sample is, in my view, a really slow way around it.

Thanks,

Ángeles

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

3 participants