We've moved!
You can find our new documentation site and support forum for posting questions here.

Accessing the samples of a participant

francois_afrancois_a Member, Broadie ✭✭

It currently isn't possible to access a participant's sample attributes directly, using this.samples.<attribute>
This is a significant limitation for analyses across samples (e.g., tissues, cell types) from the same individual.
As a workaround, I'm adding sample lists through the API:

{"samples_": {
    "itemsType": "EntityReference",
    "items": [{"entityType": "sample", "entityName": i} for i in participant_sample_ids]

Since this can lead to synchronization problems, it would be great if the participant->samples relationship were implicit in the data model.

1 votes

Active · Last Updated


Sign In or Register to comment.