Skip to content

Commit

Permalink
add names of bigscape classes (#273)
Browse files Browse the repository at this point in the history
* add names of bigscape classes

* add name `Others`
  • Loading branch information
CunliangGeng authored Aug 6, 2024
1 parent 9bb54da commit 9a97de1
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 3 deletions.
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

0 comments on commit 9a97de1

Please sign in to comment.