Skip to content

Errors with chromosome_matrix() and load_contacts() function~ #351

@Miracle-Yao

Description

@Miracle-Yao

Hi, @teunbrand

I am so sorry to bother you. For GENOVA, I'm not a veteran. I would prefer to use GENOVA because of the lightness and color palette. But just recently, I've tried almost everything to walk through the following, but there's always some error that I can't fix. The following errors are all based on GENOVA v1.0.0 in window10 system.

This species has no information about the centromeres. These errors also don't seem to have been found in the previous issue track.

  1. Appears when running test data using chromosome_matrix() function: Error in [.data.frame(idx, , list(N = .N), by = "V1") : unused argument (by = "V1")
library(GENOVA)
exp <- readRDS("test_150k.rds")
head(exp$MAT,4)
     V1    V2         V3
1 18619 18619 20734.3955
2 18619 18620  8296.8487
3 18619 18621   956.5607
4 18619 18622   124.3649
head(exp$IDX,4)
     V1     V2     V3    V4
1 chr21      0 150000 18557
2 chr21 150000 300000 18558
3 chr21 300000 450000 18559
4 chr21 450000 600000 18560

res <- chromosome_matrix(exp)
Error in `[.data.frame`(idx, , list(N = .N), by = "V1") : 
  unused argument (by = "V1")
  1. Appears when running own data using chromosome_matrix() function: Error in seq.default(.limits[1], .limits[2], length.out = guide$nbin) : 'from' must be a finite number
WT <- load_contacts(
  signal_path = 'WT_1000000_iced.matrix', 
  indices_path = 'WT_1000000_abs.bed',  
  sample_name = "WT", 
  colour = "black"
)
Reading data...

MUT <- load_contacts(
  signal_path = 'MUT_1000000_iced.matrix', 
  indices_path = 'MUT_1000000_abs.bed', 
  sample_name = "MUT", 
  colour = "red",
  # centromeres = FALSE
)
Reading data...

> chr_mat <- chromosome_matrix(list(WT,MUT))
> visualise(chr_mat)
Error in seq.default(.limits[1], .limits[2], length.out = guide$nbin) : 
  'from' must be a finite number
  1. Appears when running own data using load_contacts() function with centromeres = FALSE settings: Error in names(object) <- nm : 'names' attribute [3] must be the same length as the vector [1]
MUT <- load_contacts(
  signal_path = 'MUT_1000000_iced.matrix', 
  indices_path = 'MUT_1000000_abs.bed', 
  sample_name = "MUT", 
  colour = "red",
  centromeres = FALSE
)
  1. Appears when running own data using load_contacts() function: noscf denotes the removal of records from the sparse matrix generated by HiCPro that are aligned to those on scaffolds.
WT <- load_contacts(
  signal_path = 'WT_iced.noscf.matrix', 
  indices_path = 'WT_abs.noscf.bed', 
  sample_name = "WT", 
  # colour = "red",
  # centromeres = FALSE
)
Reading data...
Error in setkeyv(x, cols, verbose = verbose, physical = physical) : 
  Some columns not in data.table  chrom

WT <- load_contacts(
  signal_path = 'WT_iced.noscf.matrix', 
  indices_path = 'WT_abs.noscf.bed', 
  sample_name = "WT", 
  # colour = "red",
  centromeres = FALSE
)
Reading data...
Error in names(object) <- nm : 'names' attribute [3] must be the same length as the vector [1]

I'm looking forward to your guidance. Thanks.

Best,
Yao

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