Grassroots Infrastructure
The Grassroots Infrastructure is a suite of computing tools to help users and developers use scientific data infrastructure that can easily be interconnected.
|
Go to the documentation of this file.
21 #ifndef PATHOGENOMICS_SERVICE_H
22 #define PATHOGENOMICS_SERVICE_H
33 #define PATHOGENOMICS_DB_S ("pathogenomics")
36 #ifndef DOXYGEN_SHOULD_SKIP_THIS
38 #ifdef ALLOCATE_PATHOGENOMICS_TAGS
39 #define PATHOGENOMICS_PREFIX PATHOGENOMICS_SERVICE_LOCAL
40 #define PATHOGENOMICS_VAL(x) = x
42 #define PATHOGENOMICS_PREFIX extern
43 #define PATHOGENOMICS_VAL(x)
55 PATHOGENOMICS_PREFIX
const char *
PG_SAMPLE_S PATHOGENOMICS_VAL (
"sample");
62 PATHOGENOMICS_PREFIX
const char *
PG_ID_S PATHOGENOMICS_VAL (
"ID");
69 PATHOGENOMICS_PREFIX
const char *
PG_UKCPVS_ID_S PATHOGENOMICS_VAL (
"UKCPVS ID");
77 PATHOGENOMICS_PREFIX
const char *
PG_GPS_S PATHOGENOMICS_VAL (
"GPS");
86 PATHOGENOMICS_PREFIX
const char *
PG_POSTCODE_S PATHOGENOMICS_VAL (
"Postal code");
95 PATHOGENOMICS_PREFIX
const char *
PG_TOWN_S PATHOGENOMICS_VAL (
"Town");
104 PATHOGENOMICS_PREFIX
const char *
PG_COUNTY_S PATHOGENOMICS_VAL (
"County");
113 PATHOGENOMICS_PREFIX
const char *
PG_COUNTRY_S PATHOGENOMICS_VAL (
"Country");
121 PATHOGENOMICS_PREFIX
const char *
PG_DATE_S PATHOGENOMICS_VAL (
"Date collected");
129 PATHOGENOMICS_PREFIX
const char *
PG_RAW_DATE_S PATHOGENOMICS_VAL (
"Date collected (compact)");
137 PATHOGENOMICS_PREFIX
const char *
PG_RUST_S PATHOGENOMICS_VAL (
"Rust (YR/SR/LR)");
146 PATHOGENOMICS_PREFIX
const char *
PG_GENOTYPE_S PATHOGENOMICS_VAL (
"genotype");
163 PATHOGENOMICS_PREFIX
const char *
PG_FILES_S PATHOGENOMICS_VAL (
"files");
172 PATHOGENOMICS_PREFIX
const char *
PG_DISEASE_S PATHOGENOMICS_VAL (
"Disease");
180 PATHOGENOMICS_PREFIX
const char *
PG_VARIETY_S PATHOGENOMICS_VAL (
"Variety");
188 PATHOGENOMICS_PREFIX
const char *
PG_COLLECTOR_S PATHOGENOMICS_VAL (
"Name/Collector");
196 PATHOGENOMICS_PREFIX
const char *
PG_COMPANY_S PATHOGENOMICS_VAL (
"Company");
204 PATHOGENOMICS_PREFIX
const char *
PG_ADDRESS_S PATHOGENOMICS_VAL (
"Address");
229 #define PG_LIVE_DATE_SUFFIX_S "_live_date"
const char * PG_ADDRESS_S
The key used to give the address of the person who collected the sample.
Definition: pathogenomics_service.h:204
const char * PG_COUNTY_S
The key for specifying an object containing the county where the sample was collected.
Definition: pathogenomics_service.h:104
const char * PG_RUST_S
The key used to define the pathogen that the sample was afflicted with.
Definition: pathogenomics_service.h:137
const char * PG_COUNTRY_S
The key for specifying an object containing the country where the sample was collected.
Definition: pathogenomics_service.h:113
const char * PG_COMPANY_S
The key used to give the name of the company who collected the sample.
Definition: pathogenomics_service.h:196
const char * PG_SAMPLE_S
The key for specifying the object containing the sample metadata such as date collected,...
Definition: pathogenomics_service.h:55
A datatype to represent a running task.
Definition: service_job.h:72
const char * PG_DISEASE_S
The key used to get the object containing the disease characteristics for this sample.
Definition: pathogenomics_service.h:172
const char * PG_GPS_S
The key for specifying an object containing the GPS coordinates where the sample was collected.
Definition: pathogenomics_service.h:77
const char * PG_DATE_S
The key used to define the data that sample was collected in the form yyyy-mm-dd.
Definition: pathogenomics_service.h:121
const char * PG_FILES_S
The key for specifying any associated files for the given sample.
Definition: pathogenomics_service.h:163
const char * PG_PRIVATE_VIEW_S
The flag used to determine whether to ignore the publication date for a given sample.
Definition: pathogenomics_service.h:215
const char * PG_UKCPVS_ID_S
The key for specifying the UK CPVS id of the sample.
Definition: pathogenomics_service.h:69
const char * PG_TOWN_S
The key for specifying an object containing the town where the sample was collected.
Definition: pathogenomics_service.h:95
A datatype for having a set of Services.
Definition: service.h:422
#define PATHOGENOMICS_SERVICE_LOCAL
Definition: pathogenomics_service_library.h:42
const char * PG_POSTCODE_S
The key for specifying an object containing the postal code where the sample was collected.
Definition: pathogenomics_service.h:86
ServicesArray * GetServices(UserDetails *user_p, GrassrootsServer *grassroots_p)
Get the Service available for running the Pathogenomics Service.
Definition: grassroots_server.h:45
const char * PG_ID_S
The key for specifying the internal id of the sample.
Definition: pathogenomics_service.h:62
const char * PG_PHENOTYPE_S
The key used to hold the object that contains all of the phenotyping data for a given record.
Definition: pathogenomics_service.h:155
const char * PG_GENOTYPE_S
The key used to hold the object that contains all of the genotyping data for a given record.
Definition: pathogenomics_service.h:146
void ReleaseServices(ServicesArray *services_p)
Free the ServicesArray and its associated Pathogenomics Service.
#define PATHOGENOMICS_SERVICE_API
Definition: pathogenomics_service_library.h:41
PARENTAL_GENOTYPE_SERVICE_LOCAL bool AddErrorMessage(ServiceJob *job_p, const json_t *value_p, const char *error_s, const int index)
const char * PG_VARIETY_S
The key used to give the variety of the plant for this sample.
Definition: pathogenomics_service.h:180
const char * PG_RAW_DATE_S
The key used to define the data that sample was collected in the form yyyymmdd.
Definition: pathogenomics_service.h:129
const char * PG_COLLECTOR_S
The key used to give the name of the person who collected the sample.
Definition: pathogenomics_service.h:188