Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
tanghaibao committed Sep 27, 2023
1 parent 5b3d5b6 commit 7ba7c5f
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions goatools/anno/annoreader_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ class AnnoReaderBase(object):
)

valid_formats = {"gpad", "gaf", "gene2go", "id2gos"}

exp_nss = set(["BP", "MF", "CC"])
exp_nss = {"BP", "MF", "CC"}

def __init__(self, name, filename=None, **kws):
# kws: allow_missing_symbol
Expand All @@ -46,15 +45,10 @@ def __init__(self, name, filename=None, **kws):
self.godag = kws.get("godag")
self.namespaces = kws.get("namespaces")
self.evobj = EvidenceCodes()
# Read anotation file, store namedtuples:
# Gene2GoReader(filename=None, taxids=None):
# GafReader(filename=None, hdr_only=False, prt=sys.stdout, allow_missing_symbol=False):
# GpadReader(filename=None, hdr_only=False):
self.hdr = None
self.datobj = None
# pylint: disable=no-member
self.associations = self._init_associations(filename, **kws)
# assert self.associations, 'NO ANNOTATIONS FOUND: {ANNO}'.format(ANNO=filename)
assert self.namespaces is None or isinstance(self.namespaces, set)

def get_desc(self):
Expand Down

0 comments on commit 7ba7c5f

Please sign in to comment.