-
Notifications
You must be signed in to change notification settings - Fork 58
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
Make the output of downstream modules Minerva-story ready #513
Comments
Hi @ciszew, MCMICRO uses a variant of Minerva called Auto-Minerva, which generates a basic view of the stitched and registered image. You can turn this feature on by adding
This will generate a As mentioned above, this will only show the stitched and registered image. To introduce additional manual annotations, you will need to run Minerva Story software directly (https://github.com/labsyspharm/minerva-story). You should be able to just import the segmentation masks generated by MCMICRO inside Minerva Story. There are also some modules that can generate cell state clustering from single-cell features. They are relatively quick to run, so you can try all of them by adding:
|
You can use any clustering or cell type calling module in the "downstream" section to define the "Mask.csv" file. The column names and precise file name do vary across the different modules, but I think all of them provide an output file with per-cell clustering. You should just need to rename the cell id and cluster label columns to exactly |
I'll tweak the modules this weekend to produce the correct column names. |
@ciszew If you take the output of one of the modules (e.g., # Replace the column name Cluster with State
/workspace/exemplar-001/downstream/fastpg $ sed 's/Cluster/State/g' exemplar-001--mesmer_cell-cells.csv > exemplar-001--mesmer_cell-states.csv
# Confirm that the column has been renamed
/workspace/exemplar-001/downstream/fastpg $ head -n 5 exemplar-001--mesmer_cell-states.csv
CellID,State,Method
1,0,FastPG
2,0,FastPG
3,1,FastPG
4,16,FastPG |
Hi @ciszew, Some basic information about these clustering methods (what method it runs, what the parameters are, etc.) can be found at https://mcmicro.org/parameters/core.html#clustering Naivestates will attempt to infer whether a given marker is expressed in each cell or not. The three lines in those plots are:
(So, for example, it was not able to distinguish the two populations for CD68, because it's not a bi-modal distribution.) Each cell is then assigned a probability of whether it belongs to the "red" population. If you provide a two-column file mapping markers to cell states (example: https://github.com/labsyspharm/naivestates/blob/master/typemap.csv), it will also combine the probabilities of individual marker expression to assign a cell type / state to individual cells. To specify this file, you can use
Lastly, MCMICRO only runs the clustering tools from Scimap, but Scimap also has a whole bunch of tools for additional analysis (https://scimap.xyz/). If you install that software directly, it should be compatible with the MCMICRO output. (@ajitjohnson can help if you run into any issues.) |
Thank you so much, this is exactly what i was looking for. |
Hello
I was wondering if it would be possible to obtain short documentation on how to generate and use different MCMICRO output files in Minerva Author (and possibly Minerva analysis) .
For example it is unclear to me how to generate files that could be used for data visualization (as described here: https://github.com/labsyspharm/minerva-story/wiki/How-to-make-a-Minerva-Story%3F#44-import-data-visualizations)
Or how to generate additional mask files as described here https://github.com/labsyspharm/minerva-story/wiki/How-to-make-a-Minerva-Story%3F#45-import-cell-segmentation-masks
can all this be done in MCMICRO directly?
The text was updated successfully, but these errors were encountered: