Skip to content

Commit c8090cd

Browse files
Merge pull request #3195 from antgonza/2022.04
fixes for 2022.04
2 parents 47e97c8 + 1451ed8 commit c8090cd

File tree

11 files changed

+39
-15
lines changed

11 files changed

+39
-15
lines changed

.github/workflows/qiita-ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ jobs:
9696
export REDBIOM_HOST="http://localhost:7379"
9797
9898
pip install . --no-binary redbiom
99+
conda install -c conda-forge --yes biom-format
99100
pwd
100101
mkdir ~/.qiita_plugins
101102

CHANGELOG.md

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

3+
Version 2022.04
4+
---------------
5+
6+
* Moved from Python 3.6 to 3.9.
7+
* Added support for Pandas 1.4.0, [details here](https://github.com/qiita-spots/qiita/pull/3174).
8+
* Updated all available JavaScript libraries, [details here](https://github.com/qiita-spots/qiita/pull/3177).
9+
* Users can select which metadata to use when creating a new analysis. By default only overlapping metadata in all studies is selected.
10+
* Now we can fully delete users in the backend.
11+
* Updated documentation to reflect the new EMPO version 2.
12+
* Fixed outstanding issues to add default workflow to a preparation, [details here](https://github.com/qiita-spots/qiita/issues/3158).
13+
* Fixed the following issues: [3183](https://github.com/qiita-spots/qiita/issues/3183), [3182](https://github.com/qiita-spots/qiita/issues/3182), [3170](https://github.com/qiita-spots/qiita/issues/3170), [3193](https://github.com/qiita-spots/qiita/pull/3193).
14+
* We deprecated the use of specimen_id from Qiita; this is no longer required in the backend or the GUI.
15+
* Moved [qp-fastp-minimap2](https://github.com/qiita-spots/qp-fastp-minimap2/) to per sample parallelization. Now an iSeq processing takes ~20min, while before it took close to 2hrs.
16+
* Fixed the following issues [qp-knight-lab-processing #15](https://github.com/qiita-spots/qp-knight-lab-processing/issues/15), [qp-knight-lab-processing #16](https://github.com/qiita-spots/qp-knight-lab-processing/issues/16), [qp-knight-lab-processing #17](https://github.com/qiita-spots/qp-knight-lab-processing/issues/17), [qp-knight-lab-processing #19](https://github.com/qiita-spots/qp-knight-lab-processing/issues/19), [mg-scripts #60](https://github.com/biocore/mg-scripts/issues/60), [mg-scripts #62](https://github.com/biocore/mg-scripts/issues/62) from the [Knight Lab Sequence Processing Pipeline](https://github.com/qiita-spots/qp-knight-lab-processing).
17+
18+
319
Version 2021.11
420
---------------
521

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__ = "2021.11"
9+
__version__ = "2022.04"

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__ = "2021.11"
30+
__version__ = "2022.04"
3131

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

qiita_db/analysis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1086,12 +1086,12 @@ def _build_mapping_file(self, samples, rename_dup_samples=False,
10861086
if si not in sample_infos:
10871087
si_df = si.to_dataframe()
10881088
if categories is not None:
1089-
si_df = si_df[categories & set(si_df.columns)]
1089+
si_df = si_df[set(categories) & set(si_df.columns)]
10901090
sample_infos[si] = si_df
10911091
pt = artifact.prep_templates[0]
10921092
pt_df = pt.to_dataframe()
10931093
if categories is not None:
1094-
pt_df = pt_df[categories & set(pt_df.columns)]
1094+
pt_df = pt_df[set(categories) & set(pt_df.columns)]
10951095

10961096
qm = pt_df.join(sample_infos[si], lsuffix="_prep")
10971097

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__ = "2021.11"
9+
__version__ = "2022.04"

qiita_pet/handlers/analysis_handlers/base_handlers.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ def post(self):
2727
desc = self.get_argument('description')
2828
mdsi = self.get_argument('merge_duplicated_sample_ids', False)
2929
metadata = self.request.arguments.get('analysis-metadata', None)
30+
# we need to change from bytes to strings
31+
if metadata is not None:
32+
metadata = [m.decode('utf-8') for m in metadata]
3033

3134
if mdsi in (b'on', 'on'):
3235
mdsi = True

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__ = "2021.11"
41+
__version__ = "2022.04"
4242

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

qiita_pet/templates/analysis_selected.html

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,20 @@
7272
if (is_sample) {
7373
if (jQuery.inArray(option.text, common_sample_fields) >= 0) {
7474
option.selected=true;
75-
$('#analysis-metadata').append(
76-
$('<option>', { value: option.value, text: option.text,
77-
selected: true}));
75+
if (!$('#analysis-metadata').val().includes(option.text)) {
76+
$('#analysis-metadata').append(
77+
$('<option>', { value: option.value, text: option.text,
78+
selected: true}));
79+
}
7880
}
7981
} else {
8082
if (jQuery.inArray(option.text, common_prep_fields) >= 0) {
8183
option.selected=true;
82-
$('#analysis-metadata').append(
83-
$('<option>', { value: option.value, text: option.text,
84-
selected: true}));
84+
if (!$('#analysis-metadata').val().includes(option.text)) {
85+
$('#analysis-metadata').append(
86+
$('<option>', { value: option.value, text: option.text,
87+
selected: true}));
88+
}
8589
}
8690
}
8791
});
@@ -102,7 +106,7 @@
102106
var toggle = key == 'selected';
103107
var selection = object[key];
104108

105-
if (toggle) {
109+
if (toggle && !$('#analysis-metadata').val().includes(selection)) {
106110
$('#analysis-metadata').append(
107111
$('<option>', { value: selection, text: selection,
108112
selected: true}));

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__ = "2021.11"
9+
__version__ = "2022.04"

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__ = "2021.11"
13+
__version__ = "2022.04"
1414

1515

1616
classes = """

0 commit comments

Comments
 (0)