from phenograph output to singlecellexperiment object with metadata
0
0
Entering edit mode
achaillon • 0
@achaillon-14117
Last seen 3.9 years ago

Hello I am using SingleCellExperiment workflow for my flowdata and it works really well. I am trying to use an alternative clustering method (Phenograph) to identify the clusters, but as you know phenograph output are csv: it consists on one large summary csv without cluster info and separate csv (one per cluster) I did try to convert back to flowset using

counts = as.matrix(pheno_df); sce =SingleCellExperiment(list(counts=counts))

it gave me

sce class: SingleCellExperiment

dim: 25000 13 metadata(0): assays(1): counts

rownames: NULL rowData names(0) colnames(13): APC-A APC-H7-A ... PE-Cy7-A PerCP-Cy5-5-A

colData names(0)

reducedDimNames(0)

altExpNames(0)

summary(sce)

[1] "SingleCellExperiment object of length 25000 with 0 metadata columns"

I can retrieve sample_id and cluster_id from the csv sources but the dimension is not ok

should rather be something like:

"SingleCellExperiment object of length 13 with 4 metadata columns"

with experiment info being sample_id condition patient_id n_cells ,etc...

Is there a tutorial to go import phenograph output and metadata to the SingleCellExperiment workflow

thank you

SingleCellExperiment • 1.5k views
ADD COMMENT
0
Entering edit mode
  1. Can't say I know that Phenograph outputs are a .csv. I have only ever run Rphenograph, which takes as input an expression matrix and returns (among other things) a vector of cluster assignments. Otherwise, I am assuming the .csv also contains or lets you retrieve some sort of cluster assignment, in which case:
  2. It is explained in the package vignette how to incorporate other clustering methods in the CATALYST framework (see here). By following the steps exemplified in there, it is in principle possible to use any clustering method. Briefly, this requires i) modifying the cluster_ids stored in the colData, and ii) modifying the cluster_codes in the metadata.
ADD REPLY
0
Entering edit mode

thank you! I will give it a try

ADD REPLY

Login before adding your answer.

Traffic: 854 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6