-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathkb_blast.spec
75 lines (66 loc) · 2.58 KB
/
kb_blast.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/*
** A KBase module: kb_blast
**
** This module contains 6 methods from BLAST+: BLASTn, BLASTp, BLASTx, tBLASTx, tBLASTn, and PSI-BLAST
**
*/
module kb_blast {
/*
** The workspace object refs are of form:
**
** objects = ws.get_objects([{'ref': params['workspace_id']+'/'+params['obj_name']}])
**
** "ref" means the entire name combining the workspace id and the object name
** "id" is a numerical identifier of the workspace or object, and should just be used for workspace
** "name" is a string identifier of a workspace or object. This is received from Narrative.
*/
typedef string workspace_name;
typedef string sequence;
typedef string data_obj_name;
typedef string data_obj_ref;
typedef int bool;
/* BLAST Input Params
*/
typedef structure {
workspace_name workspace_name;
sequence input_one_sequence;
data_obj_ref input_one_ref;
data_obj_ref input_many_refs;
data_obj_ref input_msa_ref; /* for psiBLAST_msa_start */
data_obj_name output_filtered_name;
string genome_disp_name_config;
float ident_thresh;
float e_value;
float bitscore;
float overlap_fraction;
float maxaccepts;
bool write_off_code_prot_seq;
string output_extra_format;
float rounds; /* for psiBLAST_iter if I add it later*/
} BLAST_Params;
/* BLAST Output
*/
typedef structure {
data_obj_name report_name;
data_obj_ref report_ref;
/* data_obj_ref output_filtered_ref;
*
* int n_initial_seqs;
* int n_seqs_matched;
* int n_seqs_notmatched;
*/
} BLAST_Output;
/* Methods for BLAST of various flavors of one sequence against many sequences
**
** overloading as follows:
** input_one_type: SequenceSet, Feature, FeatureSet
** input_many_type: SequenceSet, SingleEndLibrary, FeatureSet, Genome, GenomeSet
** output_type: SequenceSet (if input_many is SS), SingleEndLibrary (if input_many is SELib), (else) FeatureSet
*/
funcdef BLASTn_Search (BLAST_Params params) returns (BLAST_Output) authentication required;
funcdef BLASTp_Search (BLAST_Params params) returns (BLAST_Output) authentication required;
funcdef BLASTx_Search (BLAST_Params params) returns (BLAST_Output) authentication required;
funcdef tBLASTn_Search (BLAST_Params params) returns (BLAST_Output) authentication required;
funcdef tBLASTx_Search (BLAST_Params params) returns (BLAST_Output) authentication required;
funcdef psiBLAST_msa_start_Search (BLAST_Params params) returns (BLAST_Output) authentication required;
};