-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathkb_quast.spec
109 lines (96 loc) · 3.37 KB
/
kb_quast.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
/*
Wrapper for the QUAST tool. Takes one or more assemblies as input and produces a QUAST report
stored in a zip file in Shock.
*/
module kb_quast {
/* A boolean - 0 for false, 1 for true.
@range (0, 1)
*/
typedef int boolean;
/* An X/Y/Z style reference to a workspace object containing an assembly, either a
KBaseGenomes.ContigSet or KBaseGenomeAnnotations.Assembly.
*/
typedef string assembly_ref;
/* A handle for a file stored in Shock.
hid - the id of the handle in the Handle Service that references this shock node
id - the id for the shock node
url - the url of the shock server
type - the type of the handle. This should always be shock.
file_name - the name of the file
remote_md5 - the md5 digest of the file.
*/
typedef structure {
string hid;
string file_name;
string id;
string url;
string type;
string remote_md5;
} Handle;
/* A local FASTA file.
path - the path to the FASTA file.
label - the label to use for the file in the QUAST output. If missing, the file name will
be used.
*/
typedef structure {
string path;
string label;
} FASTAFile;
/* Input for running QUAST as a Narrative application.
workspace_name - the name of the workspace where the KBaseReport object will be saved.
assemblies - the list of assemblies upon which QUAST will be run.
force_glimmer - running '--glimmer' option regardless of assembly object size
min_contig_length - set the minimum size of contigs to process. Defaults to 500,
minimum allowed is 50.
*/
typedef structure {
string workspace_name;
list<assembly_ref> assemblies;
boolean force_glimmer;
int min_contig_length;
} QUASTAppParams;
/* Output of the run_quast_app function.
report_name - the name of the KBaseReport.Report workspace object.
report_ref - the workspace reference of the report.
*/
typedef structure {
string report_name;
string report_ref;
} QUASTAppOutput;
/* Run QUAST and save a KBaseReport with the output. */
funcdef run_QUAST_app(QUASTAppParams params) returns(QUASTAppOutput output)
authentication required;
/* Input for running QUAST.
assemblies - the list of assemblies upon which QUAST will be run.
-OR-
files - the list of FASTA files upon which QUAST will be run.
Optional arguments:
make_handle - create a handle for the new shock node for the report.
force_glimmer - running '--glimmer' option regardless of file/assembly object size
min_contig_length - set the minimum size of contigs to process. Defaults to 500,
minimum allowed is 50.
*/
typedef structure {
list<assembly_ref> assemblies;
list<FASTAFile> files;
boolean make_handle;
boolean force_glimmer;
int min_contig_length;
} QUASTParams;
/* Ouput of the run_quast function.
shock_id - the id of the shock node where the zipped QUAST output is stored.
handle - the new handle for the shock node, if created.
node_file_name - the name of the file stored in Shock.
size - the size of the file stored in shock.
quast_path - the directory containing the quast output and the zipfile of the directory.
*/
typedef structure {
string shock_id;
Handle handle;
string node_file_name;
string size;
string quast_path;
} QUASTOutput;
/* Run QUAST and return a shock node containing the zipped QUAST output. */
funcdef run_QUAST(QUASTParams params) returns(QUASTOutput output) authentication required;
};