How to retrieve sample information and meta-information? |
|
Publicly available samples
List of all publicly available samples
Users that are not logged in can obtain a list of all publicly available samples using the following command:
https://easygwas.ethz.ch/rest/sample/public/list/
or using
curl (or any other tool):
curl https://easygwas.ethz.ch/rest/sample/public/list/
Publicly available samples for a certain species
Users also can retrieve public samples for a certain species:
https://easygwas.ethz.ch/rest/species/< species_id >/sample/public/list/
or using
curl (or any other tool):
curl https://easygwas.ethz.ch/rest/species/< species_id >/sample/public/list/
Publicly available samples for a certain dataset
Users also can retrieve public samples for a certain dataset:
https://easygwas.ethz.ch/rest/dataset/< dataset_id >/sample/public/list/
or using
curl (or any other tool):
curl https://easygwas.ethz.ch/rest/dataset/< dataset_id >/sample/public/list/
A specific public sample
Users also retrieve information for a certain dataset using the sample id:
https://easygwas.ethz.ch/rest/sample/public/< sample_id >/
or using
curl (or any other tool):
curl https://easygwas.ethz.ch/rest/sample/public/< sample_id >/
Private samples
List of all private samples
Users that are
logged in can obtain a list of private samples linked to the individual user:
https://easygwas.ethz.ch/rest/sample/private/list/
or using
curl (or any other tool):
curl https://easygwas.ethz.ch/rest/sample/private/list/ -u easygwas_username
Private available samples for a certain species
https://easygwas.ethz.ch/rest/species/< species_id >/sample/private/list/
or using
curl (or any other tool):
curl https://easygwas.ethz.ch/rest/species/< species_id >/sample/private/list/ -u easygwas_username
Private available samples for a certain dataset
https://easygwas.ethz.ch/rest/dataset/< dataset_id >/sample/private/list/
or using
curl (or any other tool):
curl https://easygwas.ethz.ch/rest/dataset/< dataset_id >/sample/private/list/ -u easygwas_username
A specific private sample
https://easygwas.ethz.ch/rest/sample/private/< sample_id >/
or using
curl (or any other tool):
curl https://easygwas.ethz.ch/rest/sample/private/< sample_id >/ -u easygwas_username