Skip to content

Commit

Permalink
minor formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tanghaibao committed Sep 27, 2023
1 parent ca4e1e3 commit 8e86e44
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions goatools/anno/annoreader_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,8 @@ def chk_qualifiers(self):
assert isinstance(
qual, set
), f"{self.name}: QUALIFIER MUST BE A LIST: {ntd}"
assert qual != set([""]), ntd
assert qual != set(["-"]), ntd
assert qual != {""}, ntd
assert qual != {"-"}, ntd
assert "always" not in qual, "SPEC SAID IT WOULD BE THERE"

def chk_godag(self):
Expand Down
4 changes: 2 additions & 2 deletions goatools/cli/find_enrichment.py
Original file line number Diff line number Diff line change
Expand Up @@ -586,8 +586,8 @@ def _read_geneset(self, study_fn, pop_fn):
pop |= study
pop -= common
study -= common
sys.stderr.write("removed %d overlapping items\n" % (len(common)))
sys.stderr.write("Set 1: {0}, Set 2: {1}\n".format(len(study), len(pop)))
sys.stderr.write(f"removed {len(common)} overlapping items\n")
sys.stderr.write(f"Set 1: {len(study)}, Set 2: {len(pop)}\n")
return study, pop

def _get_optional_attrs(self):
Expand Down
1 change: 1 addition & 0 deletions goatools/obo_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@ def _init_depth(rec):
for rec in self.values():
if rec.level is None:
_init_level(rec)

if rec.depth is None:
_init_depth(rec)

Expand Down

0 comments on commit 8e86e44

Please sign in to comment.