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

Compartments phasing error #6

Open
ABignaud opened this issue Aug 24, 2023 · 4 comments
Open

Compartments phasing error #6

ABignaud opened this issue Aug 24, 2023 · 4 comments

Comments

@ABignaud
Copy link

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 !!

@ABignaud
Copy link
Author

I got the same error for multichromosomic reference.

@js2264
Copy link
Owner

js2264 commented Sep 4, 2023

Can you check the names of your fasta files (names(genome))? The only instance in which I can replicate your results is when I use a fastq file with spaces in the chromosome names.

@ABignaud
Copy link
Author

ABignaud commented Sep 5, 2023

I just look, i don't have any space in that genome names, just one sequence called:
>B_caecimuris

@js2264
Copy link
Owner

js2264 commented Sep 5, 2023

Thanks for checking. I'll investigate more

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

2 participants