Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Development #36

Merged
merged 58 commits into from
Dec 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
78b0b26
ms_plot
jalew188 Sep 13, 2022
fd007b1
MS_Plotter.model_mgr.transfer_learn()
jalew188 Sep 13, 2022
043096c
MS_Plotter.model_mgr.transfer_learn()
jalew188 Sep 13, 2022
10f8b98
easier access data
jalew188 Sep 13, 2022
9fa28a1
FIX plotly_hovermode
jalew188 Sep 13, 2022
a3cf678
minor updates
jalew188 Sep 14, 2022
4f8e52c
update to peptdeep latest version
jalew188 Sep 14, 2022
dbd883c
better bbplot
jalew188 Sep 15, 2022
d6812bd
reader_utils
jalew188 Sep 16, 2022
ed2eea4
Feng contrib plots
jalew188 Sep 17, 2022
8c455d8
rm alphatims version limit
jalew188 Sep 17, 2022
ec8f2b9
add_shape->update_layout
jalew188 Sep 18, 2022
e132a9e
include_precursor in xic plot
jalew188 Sep 18, 2022
3530d8a
fig.show('svg')
jalew188 Sep 18, 2022
7a8297b
refine PCC calc
jalew188 Sep 18, 2022
cb10e38
minor changes
jalew188 Sep 21, 2022
30414b2
mDIa
jalew188 Sep 25, 2022
c7d111d
integrated alpharaw
jalew188 Sep 26, 2022
1fea08e
mDIA support
jalew188 Sep 28, 2022
9fdc564
pcc
jalew188 Sep 28, 2022
eb528bc
minor update
jalew188 Sep 30, 2022
74b6798
view_dim=rt or im
jalew188 Sep 30, 2022
c441c1f
add zeros
jalew188 Oct 1, 2022
de9661f
minor updates
jalew188 Oct 4, 2022
a7facf6
tims uint16 to float
jalew188 Oct 5, 2022
fcbc6db
FIX make_subplots import
jalew188 Oct 7, 2022
bd845d2
legend_group
jalew188 Oct 7, 2022
965c099
legend_group M0 seperated
jalew188 Oct 7, 2022
2f7a044
int(charge)
jalew188 Oct 8, 2022
5655f76
FIX no peaks matched MS2
jalew188 Oct 8, 2022
4dffb59
FIX no peaks matched MS2
jalew188 Oct 8, 2022
b58e869
FIX no peaks matched MS2
jalew188 Oct 8, 2022
a83874c
FIX no peaks matched MS2
jalew188 Oct 8, 2022
b22c1f9
FIX empty matching
jalew188 Oct 9, 2022
8ef20fe
rt_tol->rt_win
jalew188 Oct 9, 2022
602c94e
minor
jalew188 Oct 12, 2022
85ed0dc
ready for PR
jalew188 Oct 27, 2022
56a1d22
find both left and left closest specs
jalew188 Oct 28, 2022
a196076
Merge pull request #32 from jalew188/peptdeep_latest
EugeniaVoytik Oct 28, 2022
14e2638
Merge branch 'peptdeep_latest' of https://github.com/mannlabs/alphavi…
jalew188 Jan 17, 2023
4b92d58
mz slicing
jalew188 Jan 17, 2023
cee7225
update ms2 plots
jalew188 Jan 17, 2023
2feb23d
frag_end_idx->frag_stop_idx; flex APIs
jalew188 Jan 19, 2023
9e4031b
rename
jalew188 Jan 19, 2023
11d56dd
use alphabase.match.match_utils instead of peptdeep's
jalew188 Jan 20, 2023
42a3f65
use ppm or not
jalew188 Feb 14, 2023
7631f51
use alpharaw.viz for thermo
zhouxiexuan Dec 19, 2023
8e78b99
add example notebook
zhouxiexuan Dec 19, 2023
59c9b83
update
zhouxiexuan Dec 19, 2023
1ca8265
peptdeep upgraded
zhouxiexuan Dec 19, 2023
32448ef
add xic plot example
zhouxiexuan Dec 19, 2023
346d736
add xic plot example
zhouxiexuan Dec 19, 2023
67a13cc
Merge pull request #35 from MannLabs/peptdeep_latest
jalew188 Dec 19, 2023
1d11c09
contrib->thermo
zhouxiexuan Dec 19, 2023
ccbe2d4
use .bumpversion.cfg
zhouxiexuan Dec 19, 2023
9b55028
move bumpversion.cfg to .bumpversion.cfg
zhouxiexuan Dec 19, 2023
fd66cf7
move .bumpversion.cfg out of misc
zhouxiexuan Dec 19, 2023
70cdeb1
Bump version: 1.1.15 → 1.2.0
zhouxiexuan Dec 19, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[bumpversion]
current_version = 1.2.0
commit = True
tag = False
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<release>[a-z]+)(?P<build>\d+))?
serialize =
{major}.{minor}.{patch}
{major}.{minor}.{patch}

[bumpversion:part:release]

[bumpversion:part:build]

[bumpversion:file:./alphaviz/__init__.py]

[bumpversion:file:./release/one_click_linux_gui/control]

[bumpversion:file:./release/one_click_linux_gui/create_installer_linux.sh]

[bumpversion:file:./release/one_click_macos_gui/distribution.xml]

[bumpversion:file:./release/one_click_macos_gui/Info.plist]

[bumpversion:file:./release/one_click_macos_gui/create_installer_macos.sh]

[bumpversion:file:./release/one_click_windows_gui/create_installer_windows.sh]

[bumpversion:file:./release/one_click_windows_gui/alphaviz_innoinstaller.iss]
search = {current_version}
replace = {new_version}
2 changes: 1 addition & 1 deletion alphaviz/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!python

__project__ = "alphaviz"
__version__ = "1.1.15"
__version__ = "1.2.0"
__license__ = "Apache"
__description__ = "A interactive Dashboard to explore mass spectrometry data."
__author__ = "Eugenia Voytik"
Expand Down
17 changes: 8 additions & 9 deletions alphaviz/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,10 +541,9 @@ def load_data(self, *args):
self.psm_df['instrument'] = 'timsTOF'
# trained on more Lumos files therefore should work better
# than 'timsTOF'
self.psm_df['spec_idx'] += 1
self.model_mgr.psm_num_to_tune_rt_ccs = 500
self.model_mgr.fine_tune_rt_model(self.psm_df)
# self.model_mgr.fine_tune_ccs_model(self.psm_df)
self.model_mgr.psm_num_to_train_rt_ccs = 500
self.model_mgr.train_rt_model(self.psm_df)
# self.model_mgr.train_ccs_model(self.psm_df)

self.trigger_dependancy()
self.upload_progress.active = False
Expand Down Expand Up @@ -2036,7 +2035,7 @@ def __init__(self, data, options):
value=pd.DataFrame(
columns=['sequence', 'mods', 'mod_sites', 'charge']
),
hidden_columns=['frag_end_idx', 'frag_start_idx'],
hidden_columns=['frag_stop_idx', 'frag_start_idx'],
widths={'index': 70},
sizing_mode='stretch_width',
layout='fit_data_table',
Expand Down Expand Up @@ -2382,7 +2381,7 @@ def run_prediction(self, *args):
print(f'cannot convert the column {col}')
df.mod_sites = df.mod_sites.astype('str')
df.mod_sites.replace('0', '', inplace=True)
df['nce'] = 30
df['nce'] = 30.0
df['instrument'] = 'Lumos'
self.predicted_dict = self.data.model_mgr.predict_all(
df,
Expand All @@ -2408,11 +2407,11 @@ def visualize_elution_plots_prediction(self, *args):
self.targeted_peptides_table_pred.value.loc[
self.targeted_peptides_table_pred.selection[0],
['sequence', 'charge', 'precursor_mz',
'rt_pred', 'mobility_pred', 'frag_start_idx', 'frag_end_idx']
'rt_pred', 'mobility_pred', 'frag_start_idx', 'frag_stop_idx']
].to_dict()
index_range = range(
self.peptide_prediction['frag_start_idx'],
self.peptide_prediction['frag_end_idx']
self.peptide_prediction['frag_stop_idx']
)
self.peptide_prediction['mz'] = \
self.peptide_prediction.pop('precursor_mz')
Expand Down Expand Up @@ -2476,7 +2475,7 @@ def visualize_elution_plots_prediction(self, *args):
align='center',
margin=(0, 10, 10, 10)
)
except AttibuteError:
except AttributeError:
self.layout_target_mode_predicted[2] = None
self.layout_target_mode_predicted[3] = self.export_svg_prediction_button
self.targeted_peptides_table_pred.loading = False
Expand Down
34 changes: 21 additions & 13 deletions alphaviz/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -1220,7 +1220,7 @@ def plot_elution_profile_heatmap(
)
try:
return common_plot.cols(n_cols)
except AttibuteError:
except AttributeError:
return common_plot


Expand Down Expand Up @@ -1304,6 +1304,11 @@ def plot_elution_profile(
title: str = "",
# width: int = 900,
height: int = 400,
hovermode:str = 'x unified',
theme_template:str = 'plotly_white',
include_precursor:bool = True,
include_ms1:bool = True,
row:int=None, col:int=None,
):
"""Plot an elution profile plot for the specified precursor and all
his identified fragments.
Expand Down Expand Up @@ -1373,16 +1378,18 @@ def plot_elution_profile(
'raw'
]
fig = go.Figure()
fig.add_trace(
plot_elution_line(
raw_data,
precursor_indices,
remove_zeros=True,
# label=f"precursor ({round(peptide_info['mz'], 3)})",
label='precursor',
marker_color=dict(color=colors_set[0])
if include_precursor:
fig.add_trace(
plot_elution_line(
raw_data,
precursor_indices,
remove_zeros=True,
# label=f"precursor ({round(peptide_info['mz'], 3)})",
label='precursor',
marker_color=dict(color=colors_set[0])
),
row=row, col=col
)
)
# create elution profiles for all fragments
for ind, (frag, frag_mz) in enumerate(peptide_info['fragments'].items()):
fragment_data_indices = raw_data[
Expand All @@ -1400,7 +1407,8 @@ def plot_elution_profile(
remove_zeros=True,
label=f"{frag} ({round(frag_mz, 3)})",
marker_color=dict(color=colors_set[ind+1])
)
),
row=row, col=col
)

fig.update_layout(
Expand Down Expand Up @@ -1434,10 +1442,10 @@ def plot_elution_profile(
color='black'
),
),
template='plotly_white',
template=theme_template,
# width=width,
height=height,
hovermode='x unified',
hovermode=hovermode,
showlegend=True
)
return fig
Expand Down
Loading
Loading