Closed yueli8 closed 4 months ago
The checks leading up to this are shown below ... i.e., either fsApply(fs, identifier)
or keyword(fs, "FILENAME")
should match what's listed in your md
table. Please check what those return for your data and adjust the md
table accordingly.
# check that filenames or identifiers
# match b/w 'flowSet' & metadata
ids0 <- md[[md_cols$file]]
ids1 <- fsApply(fs, identifier)
ids2 <- keyword(fs, "FILENAME")
if (length(unlist(ids2)) == length(fs))
ids2 <- basename(ids2)
check1 <- all(ids1 %in% ids0)
check2 <- all(ids2 %in% ids0)
ids_use <- which(c(check1, check2))[1]
ids <- list(ids1, ids2)[[ids_use]]
if (is.null(ids)) {
stop("Couldn't match 'flowSet'/FCS filenames\n",
"with those listed in 'md[[md_cols$file]]'.")
} else {
# reorder 'flowSet' frames according to metadata table
fs <- fs[match(md[[md_cols$file]], ids)]
}
Data should downloaded from: https://zenodo.org/records/10039274/files
Hello,
Thank you so much for developing so nice software.
I was trying to go through
CyTOF workflow: differential discovery in high-throughput high-dimensional cytometry datasets
which updated at 3 May 2024. When I want tosce <- prepData(fs, panel, md, features = panel$fcs_colname)
, it shows up:Thank you in advance for your great help!
Best,
Yue