Skip to content

Commit

Permalink
add parameter keep_mibig_only to GCFLoaderBase
Browse files Browse the repository at this point in the history
  • Loading branch information
CunliangGeng committed Oct 25, 2023
1 parent 61bf359 commit ba8e29a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/nplinker/genomics/abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,16 @@ def get_bgcs(self) -> dict[str, BGC]:
"""



class GCFLoaderBase(ABC):

@abstractmethod
def get_gcfs(self) -> Sequence[GCF]:
def get_gcfs(self, keep_mibig_only) -> Sequence[GCF]:
"""Get GCF objects
Args:
keep_mibig_only(bool): True to keep GCFs that contain only MIBiG
BGCs.
Returns:
Sequence[GCF]: a list of :class:`~nplinker.genomic.GCF` objects
"""

0 comments on commit ba8e29a

Please sign in to comment.