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

add names of bigscape classes #273

Merged
merged 2 commits into from
Aug 6, 2024
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
18 changes: 16 additions & 2 deletions src/nplinker/genomics/bgc.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class BGC:
gives product information.
For MIBiG metadata, its biosynthetic class provides such info.
mibig_bgc_class: A tuple of MIBiG biosynthetic classes to which the BGC belongs.
Defaults to None.
Defaults to None, which means the class is unknown.

MIBiG defines 6 major biosynthetic classes for natural products,
including `NRP`, `Polyketide`, `RiPP`, `Terpene`, `Saccharide`
Expand Down Expand Up @@ -142,7 +142,21 @@ def bigscape_classes(self) -> set[str | None]:
"""Get BiG-SCAPE's BGC classes.

BiG-SCAPE's BGC classes are similar to those defined in MiBIG but have
more categories (7 classes). More details see:
more categories (7 classes), including:

- NRPS
- PKS-NRP_Hybrids
- PKSI
- PKSother
- RiPPs
- Saccharides
- Terpene

For BGC falls outside of these categories, the value is "Others".

Default is None, which means the class is unknown.

More details see:
https://doi.org/10.1038%2Fs41589-019-0400-9.
"""
return {p.bigscape_class for p in self.parents}
Expand Down
16 changes: 15 additions & 1 deletion src/nplinker/genomics/gcf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,21 @@ class GCF:
bgc_ids: a set of BGC ids that belongs to the GCF.
bigscape_class: BiG-SCAPE's BGC class.
BiG-SCAPE's BGC classes are similar to those defined in MiBIG
but have more categories (7 classes). More details see:
but have more categories (7 classes), including:

- NRPS
- PKS-NRP_Hybrids
- PKSI
- PKSother
- RiPPs
- Saccharides
- Terpene

For BGC falls outside of these categories, the value is "Others".

Default is None, which means the class is unknown.

More details see:
https://doi.org/10.1038%2Fs41589-019-0400-9.
"""

Expand Down
Loading