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.
plot_jobs.h File Reference
Include dependency graph for plot_jobs.h:

Go to the source code of this file.

Functions

const PLOT_JOB_PREFIX char *PL_REPLICATE_TITLE_S PLOT_JOB_VAL ("Replicate")
 
const PLOT_JOB_PREFIX char *PL_INDEX_TABLE_TITLE_S PLOT_JOB_VAL ("Plot ID")
 
const PLOT_JOB_PREFIX char *PL_ACCESSION_TABLE_TITLE_S PLOT_JOB_VAL ("Accession")
 
const PLOT_JOB_PREFIX char *PL_STORE_CODE_TABLE_TITLE_S PLOT_JOB_VAL ("Store Code")
 
const PLOT_JOB_PREFIX char *PL_ROW_TITLE_S PLOT_JOB_VAL ("Row")
 
const PLOT_JOB_PREFIX char *PL_COLUMN_TITLE_S PLOT_JOB_VAL ("Column")
 
const PLOT_JOB_PREFIX char *const PL_RACK_TITLE_S PLOT_JOB_VAL ("Rack")
 
const PLOT_JOB_PREFIX char *const PL_GENE_BANK_S PLOT_JOB_VAL ("Gene Bank")
 
PLOT_JOB_PREFIX NamedParameterType PL_PLOT_TABLE PLOT_VARIABLE_JOB_STRUCT_VAL ("PL Upload", PT_JSON_TABLE)
 
PLOT_JOB_PREFIX NamedParameterType PL_ID PLOT_VARIABLE_JOB_STRUCT_VAL ("Plot ID", PT_STRING)
 
bool AddSubmissionPlotParams (ServiceData *data_p, ParameterSet *param_set_p, DataResource *resource_p)
 
bool AddSearchPlotParams (ServiceData *data_p, ParameterSet *param_set_p)
 
bool RunForSubmissionPlotParams (FieldTrialServiceData *data_p, ParameterSet *param_set_p, ServiceJob *job_p)
 
bool GetSubmissionPlotParameterTypeForNamedParameter (const char *param_name_s, ParameterType *pt_p)
 
bool GetSearchPlotParameterTypeForNamedParameter (const char *param_name_s, ParameterType *pt_p)
 
PlotGetPlotByRowColumnRack (const uint32 row, const uint32 column, const uint32 rack, Study *study_p, const ViewFormat format, FieldTrialServiceData *data_p)
 
PlotGetPlotById (bson_oid_t *id_p, Study *study_p, const ViewFormat format, FieldTrialServiceData *data_p)
 
json_t * GetPlotsAsFDTabularPackage (const Study *study_p, const FieldTrialServiceData *data_p)
 Get the plots as a Frictionless Data Table. More...
 
json_t * GetStudyPlotHeaderAsFrictionlessData (const Study *study_p, const FieldTrialServiceData *service_data_p)
 
json_t * GetPlotsFrictionlessDataTableSchema (const Study *study_p, const FieldTrialServiceData *service_data_p)
 
json_t * GetPlotsCSVDialect (const char *null_sequence_s)
 
json_t * GetPlotAsFrictionlessData (const Plot *plot_p, const Study *const study_p, const FieldTrialServiceData *service_data_p, const char *const null_sequence_s)
 
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 RunForSearchPlotParams (FieldTrialServiceData *data_p, ParameterSet *param_set_p, ServiceJob *job_p)
 

Function Documentation

◆ PLOT_JOB_VAL() [1/8]

const PLOT_JOB_PREFIX char* PL_REPLICATE_TITLE_S PLOT_JOB_VAL ( "Replicate"  )

◆ PLOT_JOB_VAL() [2/8]

const PLOT_JOB_PREFIX char* PL_INDEX_TABLE_TITLE_S PLOT_JOB_VAL ( "Plot ID"  )

◆ PLOT_JOB_VAL() [3/8]

const PLOT_JOB_PREFIX char* PL_ACCESSION_TABLE_TITLE_S PLOT_JOB_VAL ( "Accession"  )

◆ PLOT_JOB_VAL() [4/8]

const PLOT_JOB_PREFIX char* PL_STORE_CODE_TABLE_TITLE_S PLOT_JOB_VAL ( "Store Code"  )

◆ PLOT_JOB_VAL() [5/8]

const PLOT_JOB_PREFIX char* PL_ROW_TITLE_S PLOT_JOB_VAL ( "Row"  )

◆ PLOT_JOB_VAL() [6/8]

const PLOT_JOB_PREFIX char* PL_COLUMN_TITLE_S PLOT_JOB_VAL ( "Column"  )

◆ PLOT_JOB_VAL() [7/8]

const PLOT_JOB_PREFIX char* const PL_RACK_TITLE_S PLOT_JOB_VAL ( "Rack"  )

◆ PLOT_JOB_VAL() [8/8]

const PLOT_JOB_PREFIX char* const PL_GENE_BANK_S PLOT_JOB_VAL ( "Gene Bank"  )

◆ PLOT_VARIABLE_JOB_STRUCT_VAL() [1/2]

PLOT_JOB_PREFIX NamedParameterType PL_PLOT_TABLE PLOT_VARIABLE_JOB_STRUCT_VAL ( "PL Upload"  ,
PT_JSON_TABLE   
)

◆ PLOT_VARIABLE_JOB_STRUCT_VAL() [2/2]

PLOT_JOB_PREFIX NamedParameterType PL_ID PLOT_VARIABLE_JOB_STRUCT_VAL ( "Plot ID"  ,
PT_STRING   
)

◆ AddSubmissionPlotParams()

bool AddSubmissionPlotParams ( ServiceData data_p,
ParameterSet param_set_p,
DataResource resource_p 
)

◆ AddSearchPlotParams()

bool AddSearchPlotParams ( ServiceData data_p,
ParameterSet param_set_p 
)

◆ RunForSubmissionPlotParams()

bool RunForSubmissionPlotParams ( FieldTrialServiceData data_p,
ParameterSet param_set_p,
ServiceJob job_p 
)

◆ GetSubmissionPlotParameterTypeForNamedParameter()

bool GetSubmissionPlotParameterTypeForNamedParameter ( const char *  param_name_s,
ParameterType pt_p 
)

◆ GetSearchPlotParameterTypeForNamedParameter()

bool GetSearchPlotParameterTypeForNamedParameter ( const char *  param_name_s,
ParameterType pt_p 
)

◆ GetPlotByRowColumnRack()

Plot* GetPlotByRowColumnRack ( const uint32  row,
const uint32  column,
const uint32  rack,
Study study_p,
const ViewFormat  format,
FieldTrialServiceData data_p 
)

◆ GetPlotById()

Plot* GetPlotById ( bson_oid_t *  id_p,
Study study_p,
const ViewFormat  format,
FieldTrialServiceData data_p 
)

◆ GetPlotsAsFDTabularPackage()

json_t* GetPlotsAsFDTabularPackage ( const Study study_p,
const FieldTrialServiceData data_p 
)

Get the plots as a Frictionless Data Table.

Parameters
study_pThe Study to get the plots for.
data_pThe Field Trial Service Config
Returns
The JSON for the plots or NULL upon error.

◆ GetStudyPlotHeaderAsFrictionlessData()

json_t* GetStudyPlotHeaderAsFrictionlessData ( const Study study_p,
const FieldTrialServiceData service_data_p 
)

◆ GetPlotsFrictionlessDataTableSchema()

json_t* GetPlotsFrictionlessDataTableSchema ( const Study study_p,
const FieldTrialServiceData service_data_p 
)

◆ GetPlotsCSVDialect()

json_t* GetPlotsCSVDialect ( const char *  null_sequence_s)

◆ GetPlotAsFrictionlessData()

json_t* GetPlotAsFrictionlessData ( const Plot plot_p,
const Study *const  study_p,
const FieldTrialServiceData service_data_p,
const char *const  null_sequence_s 
)

◆ AddPlotAsFrictionlessData()

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 
)

◆ RunForSearchPlotParams()

bool RunForSearchPlotParams ( FieldTrialServiceData data_p,
ParameterSet param_set_p,
ServiceJob job_p 
)