Skip to content

Commit

Permalink
black updated
Browse files Browse the repository at this point in the history
  • Loading branch information
ypriverol committed Sep 4, 2023
1 parent f5c91d6 commit 6264521
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion sdrf_pipelines/openms/unimod.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ def _get_modifications(self, node):
mod = PostTranslationalModification(ontology_term, ma["delta_composition"], sites, ma["delta_mono_mass"])
self.modifications.append(mod)


def get_by_accession(self, accession):
for mod in self.modifications:
if mod.get_accession() == accession:
Expand Down
5 changes: 2 additions & 3 deletions sdrf_pipelines/tests/test_unimod.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@ def test_search_mods_by_keyword():
ptm = unimod.get_by_accession("UNIMOD:21")
print(ptm.get_name())


def test_search_mods_by_keyword():
unimod = UnimodDatabase()
ptms = unimod.search_mods_by_keyword("Phospho")
for ptm in ptms:
print(ptm.to_str())


if __name__ == "__main__":
test_search_mods_by_keyword()



0 comments on commit 6264521

Please sign in to comment.