Skip to content

Commit

Permalink
tmp fix: work with default gimme
Browse files Browse the repository at this point in the history
  • Loading branch information
siebrenf committed Nov 17, 2022
1 parent 5bdcb4b commit d79cac4
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions ananse/peakpredictor.py
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,19 @@ def predict_factor_activity(self, nregions=50_000):
method="bayesianridge",
pfmfile=self.pfmfile,
ncpus=self.ncore,
random_state=state, # TODO: gimme on passer only
random_state=state, # gimme PR 283
),
how="outer",
rsuffix=f"_{i}",
)
except TypeError:
activity = activity.join(
moap(
f.name,
genome=self.genome,
method="bayesianridge",
pfmfile=self.pfmfile,
ncpus=self.ncore,
),
how="outer",
rsuffix=f"_{i}",
Expand Down Expand Up @@ -864,7 +876,6 @@ def _set_reference(reference=None):

def read_factor2motifs(pfmfile=None, genome="hg38", indirect=True, factors=None):
# The default motif db must be pruned
# TODO: species = _get_species(genome) if pfmfile is None and reference_type == "default" else "N/A"
species = _get_species(genome)
if species is None and pfmfile is None:
warnings = [
Expand Down

0 comments on commit d79cac4

Please sign in to comment.