How to retrieve covariates and its meta-information?


Publicly available covariates

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

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

or using curl (or any other tool):

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

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

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

or using curl (or any other tool):

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

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

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

or using curl (or any other tool):

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

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

https://easygwas.ethz.ch/rest/covariate/public/< covariate_id >/

or using curl (or any other tool):

curl https://easygwas.ethz.ch/rest/covariate/public/< covariate_id >/

Private covariates

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

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

or using curl (or any other tool):

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

Private available covariates for a certain species


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

or using curl (or any other tool):

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

Private available covariates for a certain dataset


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

or using curl (or any other tool):

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

A specific private covariate


https://easygwas.ethz.ch/rest/sample/covariate/< covariate_id >/

or using curl (or any other tool):

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