Skip to content
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

Inconsistency in biomes as relationship #235

Open
gustavo-salazar opened this issue Nov 5, 2021 · 1 comment
Open

Inconsistency in biomes as relationship #235

gustavo-salazar opened this issue Nov 5, 2021 · 1 comment

Comments

@gustavo-salazar
Copy link
Collaborator

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:

            "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"
                }
            },
@gustavo-salazar
Copy link
Collaborator Author

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

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

No branches or pull requests

1 participant