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

quick fix for save_hdf codes #6

Merged
merged 1 commit into from
Oct 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
12 changes: 6 additions & 6 deletions alphabase/speclib/decoy_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def _decoy_meta(self):

def _decoy_mod(self):
"""
Decoy for modifications and modification sits
Decoy for modifications and modification sites
"""
pass

Expand Down Expand Up @@ -65,11 +65,11 @@ def save_hdf(self, hdf_file):
truncate=True,
delete_existing=False
)
_hdf_lib = _hdf.library
_hdf_lib.add_group('decoy',{})
_hdf_lib.decoy.precursor_df = self._precursor_df
_hdf_lib.decoy.fragment_mass_df = self._fragment_mass_df
_hdf_lib.decoy.fragment_inten_df = self._fragment_inten_df
_hdf.library.decoy = {
'precursor_df': self._precursor_df,
'fragment_mass_df': self._fragment_mass_df,
'fragment_inten_df': self._fragment_inten_df,
}

def load_hdf(self, hdf_file):
_hdf = HDF_File(
Expand Down
9 changes: 5 additions & 4 deletions alphabase/speclib/library_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,11 @@ def save_hdf(self, hdf_file):
truncate=True,
delete_existing=True
)
_hdf.add_group('library',{})
_hdf.library.precursor_df = self._precursor_df
_hdf.library.fragment_mass_df = self._fragment_mass_df
_hdf.library.fragment_inten_df = self._fragment_inten_df
_hdf.library = {
'precursor_df': self._precursor_df,
'fragment_mass_df': self._fragment_mass_df,
'fragment_inten_df': self._fragment_inten_df,
}

def load_hdf(self, hdf_file):
_hdf = HDF_File(
Expand Down
Loading