How to retrieve phenotypes and its meta-information?


Publicly available phenotypes

List of all publicly available phenotypes
Users that are not logged in can obtain a list of all publicly available phenotypes using the following command:

https://easygwas.ethz.ch/rest/phenotype/public/list/

or using curl (or any other tool):

curl https://easygwas.ethz.ch/rest/phenotype/public/list/

Publicly available phenotypes for a certain species
Users also can retrieve public phenotypes for a certain species:

https://easygwas.ethz.ch/rest/species/< species_id >/phenotype/public/list/

or using curl (or any other tool):

curl https://easygwas.ethz.ch/rest/species/< species_id >/phenotype/public/list/

Publicly available phenotypes for a certain dataset
Users also can retrieve public phenotypes for a certain dataset:

https://easygwas.ethz.ch/rest/dataset/< dataset_id >/phenotype/public/list/

or using curl (or any other tool):

curl https://easygwas.ethz.ch/rest/dataset/< dataset_id >/phenotype/public/list/

A specific public phenotype
Users also retrieve information for a certain phenotype using the sample id:

https://easygwas.ethz.ch/rest/phenotype/public/< phenotype_id >/

or using curl (or any other tool):

curl https://easygwas.ethz.ch/rest/phenotype/public/< phenotype_id >/

Private phenotypes

List of all private phenotypes
Users that are logged in can obtain a list of private phenotypes linked to the individual user:

https://easygwas.ethz.ch/rest/phenotype/private/list/

or using curl (or any other tool):

curl https://easygwas.ethz.ch/rest/phenotype/private/list/ -u easygwas_username

Private available phenotypes for a certain species


https://easygwas.ethz.ch/rest/species/< species_id >/phenotype/private/list/

or using curl (or any other tool):

curl https://easygwas.ethz.ch/rest/species/< species_id >/phenotype/private/list/ -u easygwas_username

Private available phenotypes for a certain dataset


https://easygwas.ethz.ch/rest/dataset/< dataset_id >/phenotype/private/list/

or using curl (or any other tool):

curl https://easygwas.ethz.ch/rest/dataset/< dataset_id >/phenotype/private/list/ -u easygwas_username

A specific private phenotype


https://easygwas.ethz.ch/rest/sample/phenotype/< phenotype_id >/

or using curl (or any other tool):

curl https://easygwas.ethz.ch/rest/sample/private/< phenotype_id >/ -u easygwas_username