Skip to content

Commit

Permalink
new classifier
Browse files Browse the repository at this point in the history
  • Loading branch information
jkobject committed Jul 3, 2024
1 parent 253a32f commit 6480ec4
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions bengrn/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def compare_to(
def scprint_benchmark(self, base_pr_threshold=0):
print("base enrichment")
metrics = {}
for elem in ["Central", "Targets", "Regulators"]:
for elem in ["Central", "Regulators"]:
if elem == "Central" and (self.grn.varp["GRN"] != 0).sum() > 100_000_000:
print("too many genes for central computation")
continue
Expand Down Expand Up @@ -164,14 +164,6 @@ def scprint_benchmark(self, base_pr_threshold=0):
].Term.tolist()
}
)
if self.doplot:
_ = res.plot(
terms=res.res2d[
(res.res2d["FDR q-val"] < 0.1) & (res.res2d["NES"] > 1)
]
.sort_values(by=["NES"], ascending=False)
.Term.iloc[0]
)
if self.doplot:
try:
_ = res.plot(terms="0__TFs")
Expand Down

0 comments on commit 6480ec4

Please sign in to comment.