ukaraoz / microtrait

Other
29 stars 6 forks source link

trait_matrix not found #11

Open susheelbhanu opened 2 months ago

susheelbhanu commented 2 months ago

Hi,

I'm getting the below error, but it seems that i have a matrix. Your help would be appreciated.

Error in compute.prevalence(trait_matrix, type = "trait_matrixatgranularity3") : 
  object 'trait_matrix' not found

Code

prevalence = microtrait::compute.prevalence(trait_matrixatgranularity3,
  type="trait_matrixatgranularity3")

Same error also happens with


cluster_traitmatrix(trait_matrix = trait_matrixatgranularity3_binary,
                    idcol = "id", 
                    annot_cols = c("mingentime", "optimumT"), 
                    granularity = 3,
                    clustering_distance_rows = 
                      genomeset_distances, 
                    clustering_distance_cols = "binary",
                    width = width, 
                    height = height,
                    heatmap_width = width*0.8, 
                    heatmap_height = height*0.70,
                    row_dend_width = width*0.05, 
                    column_dend_height = height*0.02,
                    rightannotation_width = width*0.1, 
                    topannotation_height = height*0.02,
                    bottomannotation_height = height*0.005,
                    outdir = here("CSO", "data", "bins"), 
                    dataset = "CSO_microtrait", pdf = TRUE)

Thank you!

camillaln commented 2 weeks ago

Hi, I am having the same issue. Did you figure out what the problem is? Thanks, Camilla