Skip to content

Commit

Permalink
update pred quickstart
Browse files Browse the repository at this point in the history
  • Loading branch information
zouter committed Nov 14, 2023
1 parent 70cc3c7 commit bab81be
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/source/quickstart/2_pred.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@

# %%
censorer = chd.models.pred.interpret.MultiWindowCensorer(fragments.regions.window)
RegionMultiWindow = chd.models.pred.interpret.RegionMultiWindow(models.path / "interpret" / "RegionMultiWindow")
regionmultiwindow = chd.models.pred.interpret.RegionMultiWindow(models.path / "interpret" / "regionmultiwindow")

# %%
RegionMultiWindow.score(
regionmultiwindow.score(
fragments,
transcriptome,
models,
Expand All @@ -128,7 +128,7 @@
)

# %%
RegionMultiWindow.interpolate()
regionmultiwindow.interpolate()

# %%
symbol = "EBF1"
Expand All @@ -140,13 +140,13 @@
panel_genes = chd.plot.genome.genes.Genes.from_region(region, width=width)
fig.main.add_under(panel_genes)

panel_pileup = chd.models.pred.plot.Pileup.from_RegionMultiWindow(
RegionMultiWindow, transcriptome.gene_id(symbol), width=width
panel_pileup = chd.models.pred.plot.Pileup.from_regionmultiwindow(
regionmultiwindow, transcriptome.gene_id(symbol), width=width
)
fig.main.add_under(panel_pileup)

panel_predictivity = chd.models.pred.plot.Predictivity.from_RegionMultiWindow(
RegionMultiWindow, transcriptome.gene_id(symbol), width=width
panel_predictivity = chd.models.pred.plot.Predictivity.from_regionmultiwindow(
regionmultiwindow, transcriptome.gene_id(symbol), width=width
)
fig.main.add_under(panel_predictivity)

Expand Down

0 comments on commit bab81be

Please sign in to comment.