Skip to content

add support of strings as factors #197

@antonkulaga

Description

@antonkulaga

It took me quite a lot to understand stopifnot(is(path, "character")) crashes caused by the following code:

base <- file.path("/home", "rstudio", "samples")
samples <- c("GSM1944768", "GSM1944769")
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 
#will not work until I will put stringsAsFactors=FALSE
)
so <- sleuth_prep(s2c, extra_bootstrap_summary = TRUE)

I suggest that it should work even if strings are factors in order not to confuse users

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions