Skip to content

sliding_window_background error with non-human chromunity object #18

Description

@hackkr

Hello! I am encountering an error when I try to generate background bindsets. I'm wondering if it stems from the use of hg_seqlengths().

Here's several work arounds I tried.

> set.seed(198)
> back_gr = sliding_window_background(chromosome= "NC_017276.1", binsets = sw_this$binsets, n = 1000, resolution = 5e3)

Warning: NAs introduced by coercion
Generating distributions
|========================================================================| 100%, Elapsed 00:01
Generating GRanges
|                                                                        |   0%, ETA NA
Warning: all scheduled cores encountered errors in user code. Error in rbindlist(this.list, fill = TRUE) : 
Item 1 of input is not a data.frame, data.table or list

I tried supplying a forged a BSgenome for my organism. It is loaded in the environment.

> set.seed(198)
> back_gr = sliding_window_background(chromosome= "NC_017276.1", binsets = sw_this$binsets, n = 1000, resolution = 5e3, genome.to.use = Sis_REY15A)

Warning: NAs introduced by coercion Error in nchar(dbs) : no method for coercing this S4 class to a vector

setting genome to NULL as with sliding_window_chromunity() in #15 yields a slightly more informative error.

> back_gr = sliding_window_background(chromosome= "NC_017276.1", binsets = sw_this$binsets, n = 1000, resolution = 5e3, genome.to.use = NULL)

Warning: NAs introduced by coercionWarning: hg_seqlengths: supply genome seqlengths or set default with env variable DEFAULT_GENOME (e.g. Sys.setenv(DEFAULT_GENOME = "BSgenome.Hsapiens.UCSC.hg19::Hsapiens").  DEFAULT_BSGENOME can also be set to a path or URL of a tab delimited text *.chrom.sizes fileGenerating distributions
|========================================================================|| 100%, Elapsed 00:01
Generating GRanges
|                                                                        |   0%, ETA NA
Warning: all scheduled cores encountered errors in user codeError in rbindlist(this.list, fill = TRUE) : 
  Item 1 of input is not a data.frame, data.table or list

setting DEFAULT_GENOME to my forged genome does not resolve it. I also tried passing along the seqlengths(Sis_REY15A) output as a list. Both returned the error Item 1 of input is not a data.frame, data.table or list

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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