ParkerICI / vite

R package for analysis of single-cell data using graphs
GNU General Public License v3.0
10 stars 4 forks source link

Export data as fcs files containing community_id data #8

Open Stein-ErikG opened 5 years ago

Stein-ErikG commented 5 years ago

Hi,

I want to use the community clustering (by vite) to make a set of landmark files for a second map. I could not find the community id in the rds data generated by vite. Is it possible to generate fcs files with this information?

I used the following code to make the fcs files;

rdsfilelist <- list.files("path-to-data/", full.names = TRUE)

for (i in 1:length(rdsfilelist)){ tempdata <- readRDS(rdsfilelist[i]) data <- rbind(data, tempdata) }

flow.frame <- as_flowFrame(as.matrix(data)) write_flowFrame(flow.frame, "you_file.fcs")