-
Notifications
You must be signed in to change notification settings - Fork 16
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
getting a ton of column name issues #16
Comments
Hi @aelyaderani, You ran multiple commands there and the problem is always the same. The functions See the error messages, they are pretty clear: brain.integrated <- getMostExpressedGenes(brain.integrated)
# Error: Sample column (column_sample) could not be found in data. Please provide an existing column name or NULL if you want to skip calculation of most expressed genes for samples. and brain.integrated <- getMarkerGenes(brain.integrated)
# Error: Cannot find specified column ([email protected]$sample) that is supposed to contain sample information. The brain.integrated <- getEnrichedPathways(brain.integrated)
# Error: No marker genes found. Please run 'getMarkerGenes()' first. Finally, when you want to export your data set, again the exportFromSeurat(brain.integrated, 'my_experiment.crb')
# Error: Column specified in column_sample not found in meta data. I suggest you have a look at the cerebroApp website, with a particular focus on the role of the I should also mention that I will soon release v1.3 of cerebroApp, which comes with a re-design of the grouping variables. Namely, the |
@romanhaa Oh ok, ya i add my own metadata after i create the Seurat object. Do you have an example Seurat object that works with cerebroApp? I just want to see how the meta_data is setup in an object that's been tested with Cerebro :) |
Of course. Here is an example of the glimpse(seurat@meta.data)
# Rows: 5,697
# Columns: 15
# $ orig.ident <fct> SeuratProject, SeuratPro…
# $ nCount_RNA <dbl> 5783, 6036, 4653, 14761,…
# $ nFeature_RNA <int> 1654, 1396, 1298, 2544, …
# $ sample <fct> A, A, A, A, A, A, A, A, …
# $ nCount_SCT <dbl> 4845, 4842, 4440, 5079, …
# $ nFeature_SCT <int> 1653, 1396, 1298, 1065, …
# $ SCT_snn_res.0.8 <fct> 16, 6, 6, 8, 5, 7, 0, 16…
# $ seurat_clusters <fct> 16, 6, 6, 8, 5, 7, 0, 16…
# $ S.Score <dbl> -0.0593824754, -0.000904…
# $ G2M.Score <dbl> -0.105379466, -0.0606620…
# $ cell_cycle_seurat <fct> G1, G1, G1, G2M, G2M, G1…
# $ cell_type_singler_blueprintencode_main <chr> "HSC", "CD8+ T-cells", "…
# $ cell_type_singler_blueprintencode_main_score <dbl> 0.3857094, 0.4382698, 0.…
# $ percent_mt <dbl> 0.028013142, 0.032140490…
# $ percent_ribo <dbl> 0.38077123, 0.48939695, … In this example, you would set As I anticipated, in the upcoming release you would do the same by setting
In other cases, you might only have a single sample in the data set and so it wouldn't make any sense to identify marker genes, so you could run the command only for clusters like this:
|
@romanhaa Perfect!!! that helped a lot :) i got it to work! this is amazing!!.... i do have another question, how were you able to add a plotly 3D plot to your plot list in the example on you'r page? anytime i run UMAP again for 3 dimension parameter in order to pass it to poltly 3D, my original UMAP get's overwritten. :( |
@romanhaa Perfect!!! that helped a lot :) i got it to work! this is amazing!!.... i do have another question, how were you able to add a plotly 3D plot to your plot list in the example on you'r page? anytime i run UMAP again for 3 dimension parameter in order to pass it to poltly 3D, my original UMAP get's overwritten. :( |
Great, I'm happy you were able to make it work. Regarding the dimensional reductions, if I understand correctly all you have to do is store the dimensional reductions under different names and keys, e.g. like this: seurat <- RunUMAP(
seurat,
reduction.name = 'UMAP',
reduction.key = 'UMAP_',
n.components = 2
)
seurat <- RunUMAP(
seurat,
reduction.name = 'UMAP_3D',
reduction.key = 'UMAP3D_',
n.components = 3
) Then, they will be stored separately and both exported to Cerebro. |
@romanhaa I have some bad news :( |
Wow, that's a pretty massive data set. I never tested Cerebro with more than 50k cells, should be interesting to see whether it can handle 200k. Anyway, Cerebro has an integrated file limit. It looks like you are using the standalone version on macOS, is that correct? If that's the case, you should navigate to the directory where the Cerebro app is stored, right-click the app and choose "Show Package Contents". Then, go to "Contents", "Resources", "app", and open the "app.R" file. In there is only one line of code: In case you are using the standalone version of Cerebro, I recommend switching to the one shipped in the EDIT: I'd love to perform some tests on your data set. If you have permission to share it with me - I promise that I won't look at the data itself and won't share it - it would be great if you could do so. But I know that people can be very protective of their data, so no worries if sharing is not possible. |
@romanhaa unfittingly these are human samples and we can't share them :( however, we are in the middle of publishing the a paper for it. once the paper is published, we plan on sharing the data through http://synapse.org/ I'll let you know once that happens... also, thanks for the fix :) but it looks like i'm running into some memory handling issues. :( |
@romanhaa So i used the second method (using cerebro in the R package) and it worked :) but it's super slow loading everything lol i think it took about 52 minutes to upload the data and loading from umap to other umap take about 10 minute. changing 😅 .... "color cells by" isn't too bad :) only a few second... at most maybe a minute. |
Wow, I'm impressed that it works but at the same time it's a bummer that it's so slow. What you could also try is storing the expression data, which I assume occupies most of your memory but isn't needed in most tabs, as a delayed array. Check the reference page for the |
@romanhaa haven't had the chance to do try that method. I'll have more time tomorrow to give it a try. also, is there a way to host Cerebro? Similar to CellxGene? https://cellxgene.foundinpd.org/ |
Yes, people have done it on their own servers. If you don't have one, you can also use the shinyapps.io service. I wrote an article about what you have to do in order to upload Cerebro there: https://romanhaa.github.io/cerebroApp/articles/host_cerebro_on_shinyapps.html. If you don't pay the resources are relatively limited but at least you can try it for free. |
@romanhaa thanks man!! i ran into an issue, I'm using a server to host the shiny app, but i get an error when i run |
the Seurat object named "brain.itegrated" has had SCTransform and Integration performed on it, but I'm using the RNA assay for the conversion. Any Idea what's going on?
The text was updated successfully, but these errors were encountered: