Skip to content

Error with createFishObject #44

@anx-trade

Description

@anx-trade

Hi , can I get help with this error please? Thank you!

frac_table
[,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8]
[1,] 1 0.5254 0.3832 0.2525 0.1818 0.0909 0.0707 0.0303

parents
[1] 0 1 1 1 1 1 1 1

fish <- createFishObject(frac_table, parents=parents)
Error in frac.table[neighbors, timept] : subscript out of bounds

using data from pyclone output

cluster_summary <- pyclone %>%
  group_by(cluster_id) %>%
  summarise(mean_prev = mean(cellular_prevalence)) %>%
  arrange(desc(mean_prev))   # sort largest clone first

Fractions matrix (1 row = 1 sample, columns = clusters)

frac_table <- matrix(cluster_summary$mean_prev, nrow=1)

parents <- c(0,1,1,1,1,1,1,1)

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