robinweide / GENOVA

GENome Organisation Visual Analytics
GNU General Public License v3.0
68 stars 15 forks source link

unused argument (na.rm = TRUE) error occur when I use compartment_matrixplot function #328

Closed hanshanmengqi closed 1 year ago

hanshanmengqi commented 1 year ago

Hi,

Thank you for your powerful tool. Now I met a problem that is unused argument (na.rm = TRUE) when I use compartment_matrixplot

The screenshot is shown below: screenshot

However, it's normal when I just have one sample. Please take a look at screenshot 2

screenshot2

Could you please help me?

Thank you for your time. Han

ZHONGHONGXIN commented 1 year ago

l meet the same error.

amodrek commented 1 year ago

CS_out A GENOVA 'CS_discovery' object involving the following 2 experiment(s): 'parental', 'c142_3hr' at a resolution of 250 kb.

Contains the following slots:

0 centromeres spanning a total of 0 bins have been ignored.

any(is.na(CS_out)) [1] FALSE any(is.na(CS_out$compart_scores)) [1] TRUE head(CS_out$compart_scores) chrom start end bin parental c142_3hr 1 M 0 250000 1 NA NA 2 1 0 250000 2 -0.7955663 -0.8143696 3 1 250000 500000 3 -0.8040515 -0.8178153 4 1 500000 750000 4 -0.7916306 -0.7965462 5 1 750000 1000000 5 -0.3235744 -0.2550182 6 1 1000000 1250000 6 -0.2391273 -0.1980523 CS_out$compart_scores <- na.omit(CS_out$compart_scores) any(is.na(CS_out)) [1] FALSE compartment_matrixplot(

  • exp1 = parental_mat,
  • exp2= cuts142_3hr_mat,
  • CS_discovery= CS_out,
  • metric = "obsexp",
  • chrom = "1", arm="all"
  • ) Error in rev(range(compbreaks), na.rm = TRUE) : unused argument (na.rm = TRUE)
amodrek commented 1 year ago

same error!

teunbrand commented 1 year ago

Thanks for the report everyone, I think it should be fixed in the dev version now