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

Error in run_scaffold_analysis #13

Open
karoljacek opened this issue Jun 10, 2021 · 0 comments
Open

Error in run_scaffold_analysis #13

karoljacek opened this issue Jun 10, 2021 · 0 comments

Comments

@karoljacek
Copy link

karoljacek commented Jun 10, 2021

Hello,
Thank you a lot for creating and maintaining this package.
I have a problem when I try to run scaffold_analysis:

library(vite)
files_list <- list.files(path = ".", pattern = "*.fcs", full = TRUE, ignore.case = TRUE)
input.files <- c("group1.clustered.txt","group2.clustered.txt")
col.names <- as.character(fs@frames$683_myelo.fcs@parameters@data$desc)
landmarks.data <- load_landmarks(files.list = files_list, asinh.cofactor = 5, transform.data = T)
run_scaffold_analysis(input.files, ref.file = input.files[1],
landmarks.data = landmarks.data, col.names = col.names)
###############
Error in dimnames(x) <- dn : length of 'dimnames' [2] not equal to array extent

I have found that the problem is inside function get_distances_from_landmarks, in line:
image

colnames(dd) <- tab$cellType

When I looked inside tab and dd files i found this:
tab:
image
dd:
image

So program is trying to sign one element vector tab$cellType="myelo" into colnames(dd) which requires 50 of them.

I would like to ask you for help with this issue.

I'm using R 4.0.5, Rstudio server 1.4.1006 and ubuntu 20.04
You can download files from:
https://www.dropbox.com/s/dcia2xlhy11prjw/scaffold_issue.tar.gz?dl=0

Best,
Karol Jacek

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

1 participant