Skip to content

Compartments phasing error #6

@ABignaud

Description

@ABignaud

Hi,

Trying to do some compartments on a bacterial chromosome (fasta file with only one sequence), I got the following error message. If I am not doing the phasing, the function works.

library(HiCExperiment)
library(HiContacts)
library(Biostrings)
library(BSgenome)

# Import
cf <- "B_caecimuris_v2_MM81.mcool"
res <- 16000
hic <- HiCExperiment::import(CoolFile(cf), resolution = res)
phasing_track <- readDNAStringSet("B_caecimuris_v2.fa", format = "fasta")

# Comp
hic <- autocorrelate(hic)
compts <- getCompartments(hic, genome=phasing_track)
Going through preflight checklist...
Parsing intra-chromosomal contacts for each chromosome...
  |                                                                            |                                                                      |     |                                                                            |======================================================================| 100%

Computing eigenvectors for each chromosome...
Error: BiocParallel errors
  1 remote errors, element index: 1
  0 unevaluated and other errors
  first remote error:
Error in h(simpleError(msg, call)): error in evaluating the argument 'x' in selecting a method for function 'letterFrequency': error in evaluating the argument 'value' in selecting a method for function 'unsplit': error in evaluating the argument 'x' in selecting a method for function 'extractAt': subscript contains invalid names

Thanks for your help !!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions