Skip to content

Conversation

@MikhailAf
Copy link
Contributor

image

@MikhailAf MikhailAf requested a review from eeliane January 22, 2026 16:35
@MikhailAf MikhailAf requested review from a team as code owners January 22, 2026 16:35
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).
Copy link
Contributor

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).
Copy link
Contributor

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).
Copy link
Contributor

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:
Copy link
Contributor

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.
Copy link
Contributor

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.
Copy link
Contributor

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:
Copy link
Contributor

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`
Copy link
Contributor

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`
Copy link
Contributor

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`
Copy link
Contributor

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants