pachterlab / sleuth

Differential analysis of RNA-Seq
http://pachterlab.github.io/sleuth
GNU General Public License v3.0
305 stars 95 forks source link

plot_volcano: Object 'b' not found #230

Closed umasstr closed 4 years ago

umasstr commented 5 years ago

I assume that this error means that plot_volcano cannot find my Wald beta values? I believe that I ran sleuth_wt successfully. Any help would be greatly appreciated:

models(so) [ full ] formula: ~condition data modeled: obs_counts transform sync'ed: TRUE coefficients: (Intercept) conditionok186 [ reduced ] formula: ~1 data modeled: obs_counts transform sync'ed: TRUE coefficients: (Intercept)

tests(so) ~likelihood ratio tests: reduced:full ~wald tests: [ full ] conditionok186

plot_volcano(so,"conditionok186",test_type = "wt") Error in FUN(X[[i]], ...) : object 'b' not found

pimentel commented 5 years ago

hm, it seems to not be pulling out the effect sizes from the sleuth_results table.

can you do me a favor?

debugonce(plot_volcano)
plot_volcano(so,"conditionok186",test_type = "wt")

then hit enter until you get to the line that says:

  res <- dplyr::mutate(res, significant = qval < sig_level)

then report back the result from:

colnames(res)

thanks in advance

Rhinogradentia commented 5 years ago

This seems to be the same error as in #233 - there it is a missing parameter for sleuth_results.

steachhr commented 5 years ago

Hi,

I'm getting the same 'object b not found' error while trying to generate volcano plots. I ran the code above, and the colnames(res) returns:

[1] "target_id" "ext_gene"
[3] "num_aggregated_transcripts" "sum_mean_obs_counts"
[5] "pval" "qval"

umasstr commented 5 years ago

Hi all, there may have been a problem with gene/tx aggregation in sleuth prep. I used an updated biomart ensembl host and my issue was resolved. Not sure if this is related, but hope it helps...

ymatmt commented 5 years ago

Hi,

I used an updated biomart ensembl host and my issue was resolved.

How do you do it? I got a same error.

umasstr commented 5 years ago

Hi ymatmt, I stopped using an old ensembl archive ("archive.dec2015...") in the mart variable, and instead use host = "www.ensembl.org"). I'm not sure why this helped. I'd be happy to test out a couple of your abundance files if you'd like.

ymatmt commented 5 years ago

Finally it works! Thank you!