Open gustavo-salazar opened 2 years ago
I just noticed that when getting the biomes data as the relationship from a sample, it is different from the one from studies.
For instance in studies (https://wwwdev.ebi.ac.uk/metagenomics/api/v1/studies/MGYS00005782) sample.relationships.biomes.data it is an array of length 1:
sample.relationships.biomes.data
"biomes": { "links": { "related": "https://wwwdev.ebi.ac.uk/metagenomics/api/v1/studies/MGYS00005782/biomes" }, "data": [ { "type": "biomes", "id": "root:Environmental:Aquatic:Freshwater", "links": { "self": "https://wwwdev.ebi.ac.uk/metagenomics/api/v1/biomes/root:Environmental:Aquatic:Freshwater" } } ] },
While in samples (https://wwwdev.ebi.ac.uk/metagenomics/api/v1/samples/SRS7452828) is directly the object:
"biome": { "data": { "type": "biomes", "id": "root:Environmental:Aquatic:Freshwater" }, "links": { "related": "https://wwwdev.ebi.ac.uk/metagenomics/api/v1/biomes/root:Environmental:Aquatic:Freshwater" } },
Mhh, just noticed that in studies, the relationship is called biomes while in samples is biome which sort of justifies Array v.s. Object content
biomes
biome
Array
Object
I just noticed that when getting the biomes data as the relationship from a sample, it is different from the one from studies.
For instance in studies (https://wwwdev.ebi.ac.uk/metagenomics/api/v1/studies/MGYS00005782)
sample.relationships.biomes.data
it is an array of length 1:While in samples (https://wwwdev.ebi.ac.uk/metagenomics/api/v1/samples/SRS7452828) is directly the object: