Skip to content

Commit 54a7845

Browse files
authored
Merge pull request #148 from wilhelm-lab/release/0.7.6
Release/0.7.6
2 parents 1f1bb24 + 9651649 commit 54a7845

File tree

8 files changed

+15
-10
lines changed

8 files changed

+15
-10
lines changed

.cookietemple.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ full_name: Victor Giurcoiu
1515
email: victor.giurcoiu@tum.de
1616
project_name: spectrum_fundamentals
1717
project_short_description: Fundamentals public repo
18-
version: 0.7.5
18+
version: 0.7.6
1919
license: MIT

.github/release-drafter.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
name-template: "0.7.5 " # <<COOKIETEMPLE_FORCE_BUMP>>
2-
tag-template: 0.7.5 # <<COOKIETEMPLE_FORCE_BUMP>>
1+
name-template: "0.7.6 " # <<COOKIETEMPLE_FORCE_BUMP>>
2+
tag-template: 0.7.6 # <<COOKIETEMPLE_FORCE_BUMP>>
33
exclude-labels:
44
- "skip-changelog"
55

cookietemple.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.7.5
2+
current_version = 0.7.6
33

44
[bumpversion_files_whitelisted]
55
init_file = spectrum_fundamentals/__init__.py

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@
5252
# the built documents.
5353
#
5454
# The short X.Y version.
55-
version = "0.7.5"
55+
version = "0.7.6"
5656
# The full version, including alpha/beta/rc tags.
57-
release = "0.7.5"
57+
release = "0.7.6"
5858

5959
# The language for content autogenerated by Sphinx. Refer to documentation
6060
# for a list of supported languages.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "spectrum_fundamentals"
3-
version = "0.7.5" # <<COOKIETEMPLE_FORCE_BUMP>>
3+
version = "0.7.6" # <<COOKIETEMPLE_FORCE_BUMP>>
44
description = "Fundamental functions, annotation pipeline and constants for oktoberfest"
55
authors = ["Wilhelmlab at Technical University of Munich"]
66
license = "MIT"

spectrum_fundamentals/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
__author__ = """The Oktoberfest development team (Wilhelmlab at Technical University of Munich)"""
66
__copyright__ = f"Copyright {datetime.now():%Y}, Wilhelmlab at Technical University of Munich"
77
__license__ = "MIT"
8-
__version__ = "0.7.5"
8+
__version__ = "0.7.6"
99

1010
import logging
1111
import logging.handlers

spectrum_fundamentals/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
@click.command()
8-
@click.version_option(version="0.7.5", message=click.style("spectrum_fundamentals Version: 0.7.5"))
8+
@click.version_option(version="0.7.6", message=click.style("spectrum_fundamentals Version: 0.7.6"))
99
def main() -> None:
1010
"""spectrum_fundamentals."""
1111

spectrum_fundamentals/metrics/percolator.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ def _reorder_columns_for_percolator(self):
444444
new_columns = first_columns + sorted(mid_columns) + last_columns
445445
self.metrics_val = self.metrics_val[new_columns]
446446

447-
def calc(self):
447+
def calc(self): # noqa: C901
448448
"""Adds percolator metadata and feature columns to metrics_val based on PSM metadata."""
449449
self.add_common_features()
450450
self.target_decoy_labels = self.metadata["REVERSE"].apply(Percolator.get_target_decoy_label).to_numpy()
@@ -464,6 +464,11 @@ def calc(self):
464464
if self.neutral_loss_flag:
465465
self.metrics_val["ANNOTATED_NL_COUNT"] = self.metadata["ANNOTATED_NL_COUNT"]
466466
self.metrics_val["EXPECTED_NL_COUNT"] = self.metadata["EXPECTED_NL_COUNT"]
467+
columns_to_remove = []
468+
for col in self.metrics_val.columns:
469+
if "vs_predicted" in col:
470+
columns_to_remove.append(col)
471+
self.metrics_val.drop(columns=columns_to_remove, inplace=True)
467472
if self.drop_miss_cleavage_flag:
468473
self.metrics_val.drop(columns=["missedCleavages", "KR"], inplace=True)
469474
if self.xl:

0 commit comments

Comments
 (0)