Skip to content

Commit 8c25dfb

Browse files
Merge pull request #3259 from antgonza/allow-plugin-prep-creation
Allow plugin prep creation
2 parents d3c5ad2 + c8dd0cb commit 8c25dfb

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

qiita_db/handlers/prep_template.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def get(self, prep_id):
115115
self.write(response)
116116

117117

118-
class PrepTemplateAPItestHandler(OauthBaseHandler):
118+
class PrepTemplateAPIHandler(OauthBaseHandler):
119119
@authenticate_oauth
120120
def post(self):
121121
prep_info_dict = loads(self.get_argument('prep_info'))
@@ -126,3 +126,7 @@ def post(self):
126126
pt = qdb.metadata_template.prep_template.PrepTemplate.create(
127127
metadata, qdb.study.Study(study), data_type)
128128
self.write({'prep': pt.id})
129+
130+
131+
class PrepTemplateAPItestHandler(PrepTemplateAPIHandler):
132+
pass

qiita_pet/support_files/doc/source/dev/rest.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ the important parts of the values are described in the Parameters column.
6464
+--------+-----------------------------------------------------------------------------------+-----------------------------------------+-----------------------------------------------------+----------------------------+
6565
|GET | ``/qiita_db/prep_template/<prep_id>/`` | | Retrieves the preparation information | PrepTemplateDBHandler |
6666
+--------+-----------------------------------------------------------------------------------+-----------------------------------------+-----------------------------------------------------+----------------------------+
67+
|POST | ``/qiita_db/prep_template/`` | | Adds a new preparation | PrepTemplateAPIHandler |
68+
+--------+-----------------------------------------------------------------------------------+-----------------------------------------+-----------------------------------------------------+----------------------------+
6769
|GET | ``/qiita_db/plugins/<plugin_name>/<version>/commands/<command_name>/activate/`` | | Activates the command | CommandActivateHandler |
6870
+--------+-----------------------------------------------------------------------------------+-----------------------------------------+-----------------------------------------------------+----------------------------+
6971
|GET | ``/qiita_db/plugins/<plugin_name>/<version>/commands/<command_name>/`` | | Retrieve the command information | CommandHandler |

qiita_pet/support_files/doc/source/processingdata/processing-recommendations.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ wetlab processing and we provide the following host references for your convenie
8181
Note that the command produces up to 6 output artifacts based on the aligner and database selected:
8282

8383
- Alignment Profile: contains the raw alignment file and the no rank classification BIOM table
84-
- Per genome Predictions: contains the per genome level taxonomic predictions BIOM table
85-
- Per gene Predictions: Only WoLr1 & WoLr2, contains the per gene level taxonomic predictions BIOM table
84+
- Per genome Predictions: contains the per genome level predictions BIOM table
85+
- Per gene Predictions: Only WoLr1 & WoLr2, contains the per gene level predictions BIOM table
8686
- KEGG Pathways: Only WoLr2, contains the functional profile
8787
- KEGG Ontology (KO): Only WoLr2, contains the functional profile
8888
- KEGG Enzyme (EZ): Only WoLr2, contains the functional profile

qiita_pet/webserver.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
from qiita_db.handlers.user import UserInfoDBHandler, UsersListDBHandler
7070
from qiita_db.handlers.prep_template import (
7171
PrepTemplateDataHandler, PrepTemplateAPItestHandler,
72-
PrepTemplateDBHandler)
72+
PrepTemplateAPIHandler, PrepTemplateDBHandler)
7373
from qiita_db.handlers.oauth2 import TokenAuthHandler
7474
from qiita_db.handlers.reference import ReferenceHandler
7575
from qiita_db.handlers.core import ResetAPItestHandler
@@ -167,6 +167,7 @@ def __init__(self):
167167
(r"/prep_template/(.*)/graph/", PrepTemplateGraphHandler),
168168
(r"/prep_template/(.*)/jobs/", PrepTemplateJobHandler),
169169
(r"/ontology/", OntologyHandler),
170+
170171
# ORDER FOR /study/description/ SUBPAGES HERE MATTERS.
171172
# Same reasoning as below. /study/description/(.*) should be last.
172173
(r"/study/description/sample_template/overview/",
@@ -224,6 +225,7 @@ def __init__(self):
224225
(r"/qiita_db/sample_information/(.*)/data/", SampleInfoDBHandler),
225226
(r"/qiita_db/prep_template/(.*)/data/", PrepTemplateDataHandler),
226227
(r"/qiita_db/prep_template/(.*)/", PrepTemplateDBHandler),
228+
(r"/qiita_db/prep_template/", PrepTemplateAPIHandler),
227229
(r"/qiita_db/references/(.*)/", ReferenceHandler),
228230
(r"/qiita_db/plugins/(.*)/(.*)/commands/(.*)/activate/",
229231
CommandActivateHandler),

0 commit comments

Comments
 (0)