Skip to content

Commit

Permalink
Merge pull request #237 from MannLabs/issue229_fix
Browse files Browse the repository at this point in the history
Release 0.6.5
  • Loading branch information
elena-krismer authored Aug 21, 2023
2 parents a21d0f6 + 53a31f5 commit 89843be
Show file tree
Hide file tree
Showing 15 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.6.4
current_version = 0.6.5
commit = True
tag = False
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<release>[a-z]+)(?P<build>\d+))?
Expand Down
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors:
given-names: Elena
orcid:
title: "AlphaPeptStats: an open-source Python package for automated and scalable statistical analysis of mass spectrometry-based proteomics "
version: 6.3.0
version: 0.6.5
doi: "10.1093/bioinformatics/btad461"
date-released: 2023-12-11
repository-code: https://github.com/MannLabs/alphapeptstats
Expand Down
4 changes: 4 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

# 0.6.5
* FIX coloring of plot_sampledistribution issue #229
* ADD nbformat requirement issue #230

# 0.6.4
* FIX windows installer

Expand Down
11 changes: 8 additions & 3 deletions alphastats/DataSet_Plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def plot_correlation_matrix(self, method: str = "pearson"):
return plot

def plot_sampledistribution(
self, method: str = "violin", color: bool = None, log_scale: bool = False
self, method: str = "violin", color: str = None, log_scale: bool = False
):
"""Plot Intensity Distribution for each sample. Either Violin or Boxplot
Expand All @@ -221,10 +221,14 @@ def plot_sampledistribution(
df = df.merge(self.metadata, how="inner", on=[self.sample])

if method == "violin":
fig = px.violin(df, x=self.sample, y="Intensity", color=color)
fig = px.violin(df, x=self.sample, y="Intensity", color=color,
template="simple_white+alphastats_colors"
)

elif method == "box":
fig = px.box(df, x=self.sample, y="Intensity", color=color)
fig = px.box(df, x=self.sample, y="Intensity", color=color,
template="simple_white+alphastats_colors"
)

else:
raise ValueError(
Expand Down Expand Up @@ -386,6 +390,7 @@ def plot_imputed_values(self):
color="Imputation",
opacity=0.8,
hover_data=plot_df.columns,
template="simple_white+alphastats_colors"
)

pass
2 changes: 1 addition & 1 deletion alphastats/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__project__ = "alphastats"
__version__ = "0.6.4"
__version__ = "0.6.5"
__license__ = "Apache"
__description__ = "An open-source Python package for Mass Spectrometry Analysis"
__author__ = "Mann Labs"
Expand Down
2 changes: 1 addition & 1 deletion release/one_click_linux_gui/control
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: alphastats
Version: 0.6.4
Version: 0.6.5
Architecture: all
Maintainer: MannLabs
Description: alphastats
Expand Down
2 changes: 1 addition & 1 deletion release/one_click_linux_gui/create_installer_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ python setup.py sdist bdist_wheel
# Setting up the local package
cd release/one_click_linux_gui
# Make sure you include the required extra packages and always use the stable or very-stable options!
pip install "../../dist/alphastats-0.6.4-py3-none-any.whl"
pip install "../../dist/alphastats-0.6.5-py3-none-any.whl"

# Creating the stand-alone pyinstaller folder
pip install pyinstaller==5.8
Expand Down
2 changes: 1 addition & 1 deletion release/one_click_macos_gui/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<key>CFBundleIconFile</key>
<string>alphapeptstats_logo.icns</string>
<key>CFBundleIdentifier</key>
<string>alphastats.0.6.4</string>
<string>alphastats.0.6.5</string>
<key>CFBundleShortVersionString</key>
<string>0.6.0</string>
<key>CFBundleInfoDictionaryVersion</key>
Expand Down
2 changes: 1 addition & 1 deletion release/one_click_macos_gui/create_installer_macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ python setup.py sdist bdist_wheel

# Setting up the local package
cd release/one_click_macos_gui
pip install "../../dist/alphastats-0.6.4-py3-none-any.whl"
pip install "../../dist/alphastats-0.6.5-py3-none-any.whl"

# Creating the stand-alone pyinstaller folder
pip install pyinstaller==5.8
Expand Down
2 changes: 1 addition & 1 deletion release/one_click_macos_gui/distribution.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<installer-script minSpecVersion="1.000000">
<title>AlphaPeptStats 0.6.4</title>
<title>AlphaPeptStats 0.6.5</title>
<background mime-type="image/png" file="alphapeptstats_logo.png" scaling="proportional"/>
<welcome file="welcome.html" mime-type="text/html" />
<conclusion file="conclusion.html" mime-type="text/html" />
Expand Down
2 changes: 1 addition & 1 deletion release/one_click_windows_gui/alphastats_innoinstaller.iss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "AlphaPeptStats"
#define MyAppVersion "0.6.4"
#define MyAppVersion "0.6.5"
#define MyAppPublisher "MannLabs"
#define MyAppURL "https://github.com/MannLabs/alphapeptstats"
#define MyAppExeName "alphastats_gui.exe"
Expand Down
2 changes: 1 addition & 1 deletion release/one_click_windows_gui/create_installer_windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ python setup.py sdist bdist_wheel
# Setting up the local package
cd release/one_click_windows_gui
# Make sure you include the required extra packages and always use the stable or very-stable options!
pip install "../../dist/alphastats-0.6.4-py3-none-any.whl"
pip install "../../dist/alphastats-0.6.5-py3-none-any.whl"

# Creating the stand-alone pyinstaller folder
pip install pyinstaller==5.8
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ combat==0.3.3
xlsxwriter==3.1.0
pyteomics==4.6.0
openpyxl>=3.0.10

nbformat>=5.0
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def create_pip_wheel():
requirements = get_requirements()
setuptools.setup(
name="alphastats",
version="0.6.4",
version="0.6.5",
license="Apache",
description="An open-source Python package for automated and scalable statistical analysis of mass spectrometry-based proteomics",
long_description=get_long_description(),
Expand Down
9 changes: 0 additions & 9 deletions tests/test_DataSet.py
Original file line number Diff line number Diff line change
Expand Up @@ -729,15 +729,6 @@ def test_batch_correction(self):
first_value = self.obj.mat.values[0,0]
self.assertAlmostEqual(0.0111, first_value, places=2)

def test_multicova_analysis(self):
self.obj.preprocess(imputation="knn", normalization="zscore", subset=True)
res, plot_list = self.obj.multicova_analysis(
covariates=["disease", "Alkaline phosphatase measurement"],
subset={"disease": ["healthy", "liver cirrhosis"]},
)
self.assertAlmostEqual(-0.3063, res['disease_fc'].iloc[1], places=2)


def test_multicova_analysis_invalid_covariates(self):
self.obj.preprocess(imputation="knn", normalization="zscore", subset=True)
res, _ = self.obj.multicova_analysis(
Expand Down

0 comments on commit 89843be

Please sign in to comment.