Skip to content

Commit 02dc7a0

Browse files
authored
some fixes (#3341)
* some fixes * flake8 * 2023.12 * addressing @charles-cowart comments
1 parent 30eb772 commit 02dc7a0

File tree

11 files changed

+46
-14
lines changed

11 files changed

+46
-14
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Qiita changelog
22

3+
Version 2023.12
4+
---------------
5+
6+
* The sample and preparation information pages will display the timestamp of their last update.
7+
* Added a ProcessingJob.complete_processing_job method to retrieve the job that is completing the current job.
8+
* Added a ProcessingJob.trace method to trace all the jobs of a processing_job.
9+
* Analyses now accept SLURM reservation's via the GUI; this will be [helpful for workshops or classes](https://qiita.ucsd.edu/static/doc/html/faq.html#are-you-planning-a-workshop-or-class).
10+
* Admins can now add per-user-level SLURM submission parameters via the DB; this is helpful to prioritize wet-lab and admin jobs.
11+
* Workflow definitions can now use sample or preparation information columns/values to differentiate between them.
12+
* Updated the Adapter and host filtering plugin (qp-fastp-minimap2) to v2023.12 addressing a bug in adapter filtering; [more information](https://qiita.ucsd.edu/static/doc/html/processingdata/qp-fastp-minimap2.html).
13+
* Other fixes: [3334](https://github.com/qiita-spots/qiita/pull/3334), [3338](https://github.com/qiita-spots/qiita/pull/3338). Thank you @sjanssen2.
14+
* The internal Sequence Processing Pipeline is now using the human pan-genome reference, together with the GRCh38 genome + PhiX and CHM13 genome for human host filtering.
15+
16+
317
Version 2023.10
418
---------------
519

qiita_core/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# The full license is in the file LICENSE, distributed with this software.
77
# -----------------------------------------------------------------------------
88

9-
__version__ = "2023.10"
9+
__version__ = "2023.12"

qiita_db/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
from . import user
2828
from . import processing_job
2929

30-
__version__ = "2023.10"
30+
__version__ = "2023.12"
3131

3232
__all__ = ["analysis", "artifact", "archive", "base", "commands",
3333
"environment_manager", "exceptions", "investigation", "logger",

qiita_db/metadata_template/prep_template.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -851,10 +851,18 @@ def _get_predecessors(workflow, node):
851851
starting_job = None
852852
pt_artifact = self.artifact.artifact_type
853853

854-
workflows = []
854+
all_workflows = [wk for wk in qdb.software.DefaultWorkflow.iter()]
855+
# are there any workflows with parameters?
856+
check_requirements = False
857+
default_parameters = {'prep': {}, 'sample': {}}
858+
if [wk for wk in all_workflows if wk.parameters != default_parameters]:
859+
check_requirements = True
855860
ST = qdb.metadata_template.sample_template.SampleTemplate
856-
for wk in qdb.software.DefaultWorkflow.iter():
861+
workflows = []
862+
for wk in all_workflows:
857863
if wk.artifact_type == pt_artifact and pt_dt in wk.data_type:
864+
if check_requirements and wk.parameters == default_parameters:
865+
continue
858866
wk_params = wk.parameters
859867
reqs_satisfied = True
860868

qiita_db/processing_job.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -999,7 +999,9 @@ def submit(self, parent_job_id=None, dependent_jobs_list=None):
999999
qdb.sql_connection.TRN.commit()
10001000

10011001
job_dir = join(qdb.util.get_work_base_dir(), self.id)
1002-
software = self.command.software
1002+
command = self.command
1003+
software = command.software
1004+
cname = command.name
10031005
plugin_start_script = software.start_script
10041006
plugin_env_script = software.environment_script
10051007

@@ -1011,7 +1013,15 @@ def submit(self, parent_job_id=None, dependent_jobs_list=None):
10111013
# case where we are going to execute some command and then wait for the
10121014
# plugin to return their own id (first implemented for
10131015
# fast-bowtie2+woltka)
1014-
if 'ENVIRONMENT' in plugin_env_script:
1016+
#
1017+
# This is the hardcoded lines described in issue:
1018+
# https://github.com/qiita-spots/qiita/issues/3340
1019+
# the idea is that in the future we shouldn't check specific command
1020+
# names to know if it should be executed differently and the
1021+
# plugin should let Qiita know that a specific command should be ran
1022+
# as job array or not
1023+
cnames_to_skip = {'Calculate Cell Counts'}
1024+
if 'ENVIRONMENT' in plugin_env_script and cname not in cnames_to_skip:
10151025
# the job has to be in running state so the plugin can change its`
10161026
# status
10171027
with qdb.sql_connection.TRN:

qiita_pet/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# The full license is in the file LICENSE, distributed with this software.
77
# -----------------------------------------------------------------------------
88

9-
__version__ = "2023.10"
9+
__version__ = "2023.12"

qiita_pet/handlers/api_proxy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
from .user import (user_jobs_get_req)
3939
from .util import check_access, check_fp
4040

41-
__version__ = "2023.10"
41+
__version__ = "2023.12"
4242

4343
__all__ = ['prep_template_summary_get_req', 'data_types_get_req',
4444
'study_get_req', 'sample_template_filepaths_get_req',

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Shotgun sequencing
4545
------------------
4646

4747
Qiita currently has one active shotgun metagenomics data analysis pipeline: a per sample
48-
bowtie2 alignment step with Woltka classification using either the WoLr1, WoLr2 (default) or RS210 databases.
48+
bowtie2 alignment step with Woltka classification using either the WoLr2 (default) or RS210 databases.
4949
Below you will find more information about each of these options.
5050

5151
.. note::
@@ -87,7 +87,7 @@ Note that the command produces up to 6 output artifacts based on the aligner and
8787

8888
- Alignment Profile: contains the raw alignment file and the no rank classification BIOM table
8989
- Per genome Predictions: contains the per genome level predictions BIOM table
90-
- Per gene Predictions: Only WoLr1 & WoLr2, contains the per gene level predictions BIOM table
90+
- Per gene Predictions: Only WoLr2, contains the per gene level predictions BIOM table
9191
- KEGG Pathways: Only WoLr2, contains the functional profile
9292
- KEGG Ontology (KO): Only WoLr2, contains the functional profile
9393
- KEGG Enzyme (EZ): Only WoLr2, contains the functional profile

qiita_pet/templates/workflows.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ <h3>Recommended Default Workflows</h3>
7373
default Earth Microbiome Project protocol and so assumes the uploaded data are multiplexed sequences with the reversed barcodes in your mapping file and index sequence
7474
file (<a href="https://earthmicrobiome.org/protocols-and-standards/" target="_blank">see here</a> for more details). Thus, if the protocol does not apply to your data
7575
you can still use the Default Workflow, however, you should first manually process your data using the appropriate steps until you have a defined step; in our example,
76-
demultiplexed your reads. After demultiplexing the Default Workflow is safe to use with any protocol.
76+
demultiplex your reads. After demultiplexing, the Default Workflow is safe to use with any protocol.
7777
<br/><br/>
78-
If you have already manually performed one of the processing steps in the Defaul Workflow pipeline, the "Add Default Workflow" button will not re-select those steps but
78+
If you have already manually performed one of the processing steps in the Default Workflow pipeline, the "Add Default Workflow" button will not re-select those steps but
7979
instead will only select any remaining steps that have not been completed. You can also add additional workflows on top of the recommended Default Workflow at any time.
8080
<br/><br/>
8181
Note that this is not a full inclusive list of data types accepted by Qiita but only those that have a defined workflow.

qiita_ware/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# The full license is in the file LICENSE, distributed with this software.
77
# -----------------------------------------------------------------------------
88

9-
__version__ = "2023.10"
9+
__version__ = "2023.12"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from setuptools import setup
1111
from glob import glob
1212

13-
__version__ = "2023.10"
13+
__version__ = "2023.12"
1414

1515

1616
classes = """

0 commit comments

Comments
 (0)