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.
29 #ifndef SERVICES_BLAST_INCLUDE_BLAST_SERVICE_PARAMS_H_
30 #define SERVICES_BLAST_INCLUDE_BLAST_SERVICE_PARAMS_H_
The datatype that stores all of the information about a Parameter.
Definition: parameter.h:121
Organism Report.
Definition: blast_service_params.h:100
NamedParameterType BS_EXPECT_THRESHOLD
The Blast Service NamedParameterType for specifying the maximum number of e-value to use.
Definition: blast_service_params.h:169
bool GetDatabaseParameterTypeForNamedParameter(BlastServiceData *data_p, const char *param_name_s, ParameterType *pt_p)
A datatype to tell the system that certain parameters should be grouped together in the client's user...
Definition: parameter_group.h:85
bool GetQuerySequenceParameterTypeForNamedParameter(const char *param_name_s, ParameterType *pt_p)
This datatype is used for describing the algorithms that some of the BLAST tools allow the user to ch...
Definition: blast_service_params.h:204
NamedParameterType BS_CUSTOM_OUTPUT_FORMAT
The Blast Service NamedParameterType for specifying any custom output format options to use.
Definition: blast_service_params.h:185
bool(* AddAdditionalParamsFn)(BlastServiceData *data_p, ParameterSet *param_set_p, ParameterGroup *group_p, const void *callback_data_p)
A callback function used to amend a given ParameterSet.
Definition: blast_service.h:186
bool AddProgramSelectionParameters(BlastServiceData *blast_data_p, ParameterSet *param_set_p, const BlastTask *tasks_p, const BlastTask *default_task_p, const size_t task_mem_size, const size_t num_tasks)
Add the program selection parameters for a Blast Service.
This is a datatype that stores a read-only c-style string along with a ParameterType.
Definition: parameter.h:85
ParameterType
The different types that a Parameter can take.
Definition: parameter_type.h:35
Pairwise.
Definition: blast_service_params.h:46
Comma-separated values.
Definition: blast_service_params.h:76
Parameter * SetUpOutputFormatParameters(const char **formats_ss, const uint32 num_formats, const uint32 default_format, const BlastServiceData *service_data_p, ParameterSet *param_set_p, ParameterGroup *group_p)
Create the Parameter for specifying the output format from a Blast search.
The configuration data for the Blast Service.
Definition: blast_service.h:143
A c-style string.
Definition: parameter_type.h:58
const char * bt_description_s
A user-friendly description of the algorithm.
Definition: blast_service_params.h:215
A datatype representing a URI.
Definition: data_resource.h:40
DatabaseType
An enumeration for differentiating between the different types of database that the BLAST algorithms ...
Definition: blast_service.h:42
bool GetGeneralAlgorithmParameterTypeForNamedParameter(const char *param_name_s, ParameterType *pt_p)
Parameter * SetUpPreviousJobUUIDParameter(const BlastServiceData *service_data_p, ParameterSet *param_set_p, ParameterGroup *group_p)
Create the Parameter for specifying the UUIDs for any previous Blast searches.
Query-anchored no identities.
Definition: blast_service_params.h:52
Flat query-anchored showing identities.
Definition: blast_service_params.h:55
char * CreateGroupName(const char *server_s)
Create the group name to use for available databases from a given named Server.
Sequence Alignment/Map (SAM)
Definition: blast_service_params.h:97
char * GetLocalDatabaseGroupName(GrassrootsServer *grassroots_p)
uint16 AddDatabaseParams(BlastServiceData *data_p, ParameterSet *param_set_p, DataResource *resource_p, const DatabaseType db_type)
Add the database parameters for a Blast Service.
bool GetProgramSelectionParameterTypeForNamedParameter(const char *param_name_s, ParameterType *pt_p)
bool AddGeneralAlgorithmParams(BlastServiceData *data_p, ParameterSet *param_set_p, AddAdditionalParamsFn callback_fn, const void *callback_data_p)
Add the common general algorithm parameters for a Blast Service.
Seqalign (JSON)
Definition: blast_service_params.h:82
Seqalign (Binary ASN.1)
Definition: blast_service_params.h:73
const char * BSP_OUTPUT_FORMATS_SS[BOF_NUM_TYPES]
#define BLAST_SERVICE_LOCAL
Definition: blast_service_api.h:48
An unsigned real number.
Definition: parameter_type.h:55
const char * GetLocalDatabaseName(const char *fully_qualified_db_s)
bool AddProteinGeneralAlgorithmParameters(BlastServiceData *data_p, ParameterSet *param_set_p, ParameterGroup *group_p, const void *callback_data_p)
Multiple-file BLAST JSON.
Definition: blast_service_params.h:85
Grassroots JSON.
Definition: blast_service_params.h:103
Tabular with comment lines.
Definition: blast_service_params.h:67
uint32 GetNumberOfDatabases(const BlastServiceData *data_p, const DatabaseType dt)
Get the number of databases of a given type that this BlastService has.
Single-file BLAST JSON.
Definition: blast_service_params.h:91
NamedParameterType BS_TASK
The Blast Service NamedParameterType for specifying the algorithm-specific task to use.
Definition: blast_service_params.h:147
BLAST XML.
Definition: blast_service_params.h:61
Definition: grassroots_server.h:45
bool AddQuerySequenceParams(BlastServiceData *data_p, ParameterSet *param_set_p, AddAdditionalParamsFn callback_fn, void *callback_data_p)
Add the common query sequence parameters for a Blast Service.
NamedParameterType BS_OUTPUT_FORMAT
The Blast Service NamedParameterType for specifying the output format to use.
Definition: blast_service_params.h:177
Single-file BLAST XML2.
Definition: blast_service_params.h:94
bool GetProteinGeneralAlgorithmParameterTypeForNamedParameter(const char *param_name_s, ParameterType *pt_p)
Seqalign (Text ASN.1)
Definition: blast_service_params.h:70
NamedParameterType BS_WORD_SIZE
The Blast Service NamedParameterType for specifying the word size to use.
Definition: blast_service_params.h:194
NamedParameterType BS_MAX_SEQUENCES
The Blast Service NamedParameterType for specifying the maximum number of sequences to return.
Definition: blast_service_params.h:161
Flat query-anchored no identities.
Definition: blast_service_params.h:58
The number of different output formats.
Definition: blast_service_params.h:106
Query-anchored showing identities.
Definition: blast_service_params.h:49
int8 GetOutputFormatCodeForString(const char *output_format_s)
Get the output format code corresponding to the given string representation.
const char * bt_name_s
The name of the algorithm that will be passed to the BlastTool using the -task parameter.
Definition: blast_service_params.h:210
BLAST archive (ASN.1)
Definition: blast_service_params.h:79
BlastOutputFormat
The different available output formats.
Definition: blast_service_params.h:43
A set of Parameters along with an optional name and description.
Definition: parameter_set.h:46
Tabular.
Definition: blast_service_params.h:64
char * GetFullyQualifiedDatabaseName(const char *group_s, const char *db_s)
A string representing a FASTA sequence.
Definition: parameter_type.h:105
NamedParameterType BS_SUBRANGE_TO
The Blast Service NamedParameterType for specifying the end of a subrange.
Definition: blast_service_params.h:139
Multiple-file BLAST XML2.
Definition: blast_service_params.h:88
NamedParameterType BS_JOB_ID
The Blast Service NamedParameterType for specifying previous job UUIDs.
Definition: blast_service_params.h:122
NamedParameterType BS_INPUT_QUERY
The Blast Service NamedParameterType for specifying the input query.
Definition: blast_service_params.h:154
NamedParameterType BS_SUBRANGE_FROM
The Blast Service NamedParameterType for specifying the start of a subrange.
Definition: blast_service_params.h:132
A non-negative 32-bit integer.
Definition: parameter_type.h:44