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

Error in if (sum(valid) == 0) { : missing value where TRUE/FALSE needed #14

Open
antonkulaga opened this issue Sep 2, 2018 · 3 comments

Comments

@antonkulaga
Copy link

After seeing hdf5 issue fixed I have another problem, when I run

so <- sleuth_fit(so, ~condition, 'full')

I get the following error:

fitting measurement error models
shrinkage estimation
Error in if (sum(valid) == 0) { : missing value where TRUE/FALSE needed

The files are the same:
http://agingkills.westeurope.cloudapp.azure.com/pipelines/samples/GSE36041/
The code I use is:

install.packages('tidyverse', dependencies=TRUE, type="source")
library("sleuth")
require(tidyverse)
require(purrr)
require(stringr)
devtools::install_github("COMBINE-lab/wasabi") #with fixed rhdf5
library(wasabi)

base <- file.path("/home", "rstudio", "samples")
#GSM1696274,GSM1696275,GSM1696276	
#GSM1696271,GSM1696272,GSM1696273


samples <- c("GSM1696274", "GSM1696271")
quant <- "transcripts_quant"
pathes <- map_chr(samples, function(s) str_c(base, "/", s, "/", quant))
prepare_fish_for_sleuth(pathes)

conditions <- c("one", "two")

s2c = data.frame(
sample = samples,
condition = conditions,
path = pathes,
stringsAsFactors=FALSE
)
so <- sleuth_prep(s2c, extra_bootstrap_summary = TRUE)
so <- sleuth_fit(so, ~condition, 'full') #it breaks here!
@rob-p
Copy link
Contributor

rob-p commented Sep 2, 2018

It's hard to say exactly what the problem is from this error alone. Can you try a traceback()1st to see which function is giving that error or error(recover=TRUE)1st to dive into the function right before the error? This will help narrow down where things could be going wrong.

@antonkulaga
Copy link
Author

Sorry for the slow reply.
So, for traceback() I get:

6: get_quantile(., y_col, lwr, upr, ignore_zeroes)
5: overscope_eval_next(overscope, args[[j]])
4: do.grouped_df(data, get_quantile(., y_col, lwr, upr, ignore_zeroes))
3: do(data, get_quantile(., y_col, lwr, upr, ignore_zeroes))
2: sliding_window_grouping(mes_df, "mean_obs", "sigma_sq_pmax", 
       n_bins = n_bins, lwr = lwr, upr = upr, ignore_zeroes = TRUE)
1: sleuth_fit(so, ~condition, "full")

When I do recover I see:
"Error during wrapup: missing value where TRUE/FALSE needed"

@yanwengong
Copy link

same error. Have you found a solution?

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