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.
23 #ifndef SERVICES_FIELD_TRIALS_INCLUDE_PLOT_JOBS_H_
24 #define SERVICES_FIELD_TRIALS_INCLUDE_PLOT_JOBS_H_
35 #ifndef DOXYGEN_SHOULD_SKIP_THIS
37 #ifdef ALLOCATE_PLOT_JOB_CONSTANTS
38 #define PLOT_JOB_PREFIX DFW_FIELD_TRIAL_SERVICE_API
39 #define PLOT_JOB_VAL(x) = x
40 #define PLOT_VARIABLE_JOB_STRUCT_VAL(x,y) = { x, y }
42 #define PLOT_JOB_PREFIX extern
43 #define PLOT_JOB_VAL(x)
44 #define PLOT_VARIABLE_JOB_STRUCT_VAL(x,y)
52 PLOT_JOB_PREFIX
const char *PL_REPLICATE_TITLE_S
PLOT_JOB_VAL(
"Replicate");
54 PLOT_JOB_PREFIX
const char *PL_INDEX_TABLE_TITLE_S
PLOT_JOB_VAL(
"Plot ID");
56 PLOT_JOB_PREFIX
const char *PL_ACCESSION_TABLE_TITLE_S
PLOT_JOB_VAL (
"Accession");
59 PLOT_JOB_PREFIX
const char *PL_STORE_CODE_TABLE_TITLE_S
PLOT_JOB_VAL (
"Store Code");
62 PLOT_JOB_PREFIX
const char *PL_ROW_TITLE_S
PLOT_JOB_VAL(
"Row");
64 PLOT_JOB_PREFIX
const char *PL_COLUMN_TITLE_S
PLOT_JOB_VAL (
"Column");
68 PLOT_JOB_PREFIX
const char *
const PL_RACK_TITLE_S
PLOT_JOB_VAL (
"Rack");
70 PLOT_JOB_PREFIX
const char *
const PL_GENE_BANK_S
PLOT_JOB_VAL (
"Gene Bank");
bool GetSearchPlotParameterTypeForNamedParameter(const char *param_name_s, ParameterType *pt_p)
bool AddSearchPlotParams(ServiceData *data_p, ParameterSet *param_set_p)
PLOT_JOB_PREFIX NamedParameterType PL_PLOT_TABLE PLOT_VARIABLE_JOB_STRUCT_VAL("PL Upload", PT_JSON_TABLE)
This is a datatype that stores a read-only c-style string along with a ParameterType.
Definition: parameter.h:85
json_t * GetStudyPlotHeaderAsFrictionlessData(const Study *study_p, const FieldTrialServiceData *service_data_p)
ParameterType
The different types that a Parameter can take.
Definition: parameter_type.h:35
A datatype to represent a running task.
Definition: service_job.h:72
A c-style string.
Definition: parameter_type.h:58
A datatype representing a URI.
Definition: data_resource.h:40
json_t * GetPlotsFrictionlessDataTableSchema(const Study *study_p, const FieldTrialServiceData *service_data_p)
json_t * GetPlotsAsFDTabularPackage(const Study *study_p, const FieldTrialServiceData *data_p)
Get the plots as a Frictionless Data Table.
bool RunForSearchPlotParams(FieldTrialServiceData *data_p, ParameterSet *param_set_p, ServiceJob *job_p)
#define DFW_FIELD_TRIAL_SERVICE_LOCAL
Definition: dfw_field_trial_service_library.h:43
bool AddPlotAsFrictionlessData(const Plot *plot_p, json_t *plots_array_p, const Study *const study_p, const FieldTrialServiceData *service_data_p, const char *const null_sequence_s)
bool GetSubmissionPlotParameterTypeForNamedParameter(const char *param_name_s, ParameterType *pt_p)
Tabular data stored as a JSON array where each object is it is a row within the tabular data.
Definition: parameter_type.h:118
Plot * GetPlotByRowColumnRack(const uint32 row, const uint32 column, const uint32 rack, Study *study_p, const ViewFormat format, FieldTrialServiceData *data_p)
bool RunForSubmissionPlotParams(FieldTrialServiceData *data_p, ParameterSet *param_set_p, ServiceJob *job_p)
json_t * GetPlotsCSVDialect(const char *null_sequence_s)
bool AddSubmissionPlotParams(ServiceData *data_p, ParameterSet *param_set_p, DataResource *resource_p)
const PLOT_JOB_PREFIX char *PL_REPLICATE_TITLE_S PLOT_JOB_VAL("Replicate")
json_t * GetPlotAsFrictionlessData(const Plot *plot_p, const Study *const study_p, const FieldTrialServiceData *service_data_p, const char *const null_sequence_s)
A datatype for holding the configuration data for a Service.
Definition: service.h:126
The configuration data used by the DFW Field Trial Service.
Definition: dfw_field_trial_service_data.h:118
Plot * GetPlotById(bson_oid_t *id_p, Study *study_p, const ViewFormat format, FieldTrialServiceData *data_p)
A set of Parameters along with an optional name and description.
Definition: parameter_set.h:46