Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SOaAS
psot.repository
Commits
0f6e1379
Commit
0f6e1379
authored
Apr 10, 2018
by
Lukas Jelonek
Browse files
Add documentation of results structure
parent
9be2aa3e
Changes
2
Hide whitespace changes
Inline
Side-by-side
docs/index.rst
View file @
0f6e1379
...
...
@@ -16,4 +16,5 @@ Welcome to PSOT - protein sequence observation tool's documentation!
modules
profiles
repositories
results_format
docs/results_format.rst
0 → 100644
View file @
0f6e1379
Result documents
=============
.. highlight:: json
The result JSON documents have the following structure::
{
"id" : "seq_10.cds_1", # query id
"computations" : [ # list of computation results
{ # each computation is an object
"tool" : { # consisting of tool information
"name" : "hmmscan",
"database" : "/db/pfam/Pfam-A.hmm",
"version" : "3.1b2"
},
"results" : [] # and a list of results
},
{
"results" : [
{ # each result is an object
"signalpeptide" : false
}
],
"tool" : {
"name" : "SignalP",
"mode" : "euk",
"version" : "4.1"
}
}
],
"sequence" : "KEVQFTAGQKQDIDVTTLCSTEQENINGLGASSEISMSGNFYLNQAQNALRDAYDNDTVYAFKVQFPSGKGFKFLAEVRQHTWSSGTNGVVAATFSLRLKGKPVSYVVPLAFVKN"
}
Each document is an object with at least two attributes: the query id ('id')
and a list of computations ('computations'). Each computation is an object with
two attributes: 1) The tool information ('tool') containing the tool name,
version and mentionable parameters and 2) a list of results ('results'). The
results list itself contains an object for every distinct result. The structure
of the result objects is defined in the corresponding modules. It is desired
to use the same structure for the same types of results, e.g. all homology
search results have the same structure.
In short::
{
"id": "the query id",
"computations: [
{
"tool": {
"name": "the tool name",
"version": "the tool version",
"parameterX": "parameter value"},
"results": [
{
"value1": "specified by module",
"valueN": "specified by module"
}
]
}
]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment