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

Demo run has an error #9

Open
Wan9299 opened this issue Nov 23, 2023 · 3 comments
Open

Demo run has an error #9

Wan9299 opened this issue Nov 23, 2023 · 3 comments

Comments

@Wan9299
Copy link

Wan9299 commented Nov 23, 2023

Dear Author,
when I use The CALDER to run the demo data, i could not get a successful result:

library(CALDER)

contact_mat_file <- system.file("extdata", "mat_chr22_10kb_ob.txt.gz", package='CALDER')

CALDER_main(contact_mat_file, 
            chr=22, 
            bin_size=10E3, 
            out_dir='./GM12878', 
            sub_domains=TRUE, 
            save_intermediate_data=FALSE
            )
>>>> Begin process contact matrix and compute correlation score at: 2023-11-23 19:13:07.592163 
 >>>> Begin compute compartment domains and their hierachy at: 2023-11-23 19:14:15.745756Error in i_set_vertex_attr(x, attr(value, "name"), index = value, value = attr(value,  : 
  Length of new attribute value must be 1 or 0, the number of target vertices, not 2
Error in rep(hc_k_labels_full, sapply(res$initial_clusters, length)) : 
  'times'参数不对

image

@Wan9299
Copy link
Author

Wan9299 commented Nov 23, 2023

so, what should i do ?
and, before i installed the packges from online and local files,
image

@Henrikkoe
Copy link

I got the same error

@YuanlongLiu
Copy link
Collaborator

This was linked to issue:
CSOgroup/CALDER2#6

And has been solved by changing the code here:
CSOgroup/CALDER2@c2a4ebf

Can you paste how the code looks like in your assign_twins_name function here?

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

3 participants