-
Notifications
You must be signed in to change notification settings - Fork 0
User guide for working with Cell metadata and expression #177
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
base: develop
Are you sure you want to change the base?
Conversation
MikhailAf
commented
Jan 22, 2026
| Each cell record belongs to a Cell Group, which represents a single cell table (group). | ||
|
|
||
| ## Cell metadata and Cell expression in ODM | ||
| Cell metadata can be imported into ODM using the `job` endpoints and [import_ODM_data script](../../tools/odm-sdk/terminal/study/uploading-study.md). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like we have to add examples on the mentioned page to show how cells and expression data for cells could be imported using script, wdyt?
| "groupAccession": "GSF1234567" | ||
| } | ||
| ``` | ||
| Learn more about [uploading data to ODM via API here](../doc-odm-user-guide/import-data-using-api.md). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should add to this mentioned page also information about importing cell data, to keep information about all entities on the same page, wdyt?
|
|
||
| Note that Cell metadata will be linked to the nearest metadata group mentioned above in the script. | ||
|
|
||
| Learn more about [uploading data to ODM using the script here](../doc-odm-user-guide/import-data-using-python-script.md). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't we mention this page a lot of times? :)
|
|
||
| #### Common rules | ||
|
|
||
| To link Cell metadata to other metadata groups use the following endpoints: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's also mention that these endpoints can be found in the integrationCurator section
|
|
||
| Fail conditions: | ||
|
|
||
| * There is no Sample Source/Library/Preparation ID in Sample/Library/Preparation metadata group. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure that we can import such groups that do not contain values in required columns? I'm not sure but I didn't check
|
|
||
| * There is no Sample Source/Library/Preparation ID in Sample/Library/Preparation metadata group. | ||
| * There are no matches between `batch` in Cell metadata and Sample Source/Library/Preparation IDs. | ||
| * Cell metadata group is already linked to another metadata group. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One cell group can be linked to different metadata groups, it's possible when user uses these endpoints (not odm import data command)
|
|
||
| ### Linking Cell expression to Cell metadata | ||
|
|
||
| To link Cell expression to Cell metadata group use the following endpoint: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's please also mention here section where this endpoint can be found
| threshold, cell type, or cluster) relative to a defined reference group or the total cell population | ||
| (`countAvailable`) defined by study, samples, library, or preparation metadata. | ||
|
|
||
| Path: POST `/api/v1/as-curator/omics/cells/analytics/cell-ratio` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's mention where in swagger it can be found (in integrationCurator)
| You use it when you want quick “what does this gene look like in these cells?” metrics: | ||
| mean/median, spread, quantiles, min/max, and a histogram-style density summary. | ||
|
|
||
| Path: POST `/api/v1/as-curator/omics/cells/analytics/gene-summary` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's mention where in swagger it can be found (in integrationCurator)
| a `Case` group and a `Control` group. It returns per-gene metrics that quantify how strongly expression | ||
| differs between the two groups, including **fold change** and **Mann–Whitney U test** results. | ||
|
|
||
| Path: POST `/api/v1/as-curator/omics/cells/analytics/differential-expression` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's mention where in swagger it can be found (in integrationCurator)