pachterlab / kma

Keep Me Around: Intron Retention Detection
GNU General Public License v2.0
29 stars 20 forks source link

error "object 'pvalue' not found" when using all_zc() R function #9

Open rhugh-white opened 7 years ago

rhugh-white commented 7 years ago

When using all_zc() function as detailed in the vignette:

"Error in eval(substitute(expr), envir, enclos) : object 'pvalue' not found"

This part of the vignette: zc_fnames <- Sys.glob(file.path(base_dir, "experiment/*/*/zero_coverage.txt")) zc_samples <- sub(file.path(base_dir, "experiment/[a-z]+/"), "", zc_fnames) %>% sub("zero_coverage.txt", "", .) %>% gsub("/", "", .) zc_conditions <- sub("[0-9]+", "", zc_samples) all_zc <- get_batch_intron_zc(zc_fnames, zc_samples, zc_conditions) head(all_zc)

This was fixed for me by setting the .keep_all parameter of the distinct() dplyr function to TRUE distinct(.keep_all = TRUE) within the zero_coverage.R file.

Rupert