Skip to content

Commit

Permalink
fix: errors in loops section
Browse files Browse the repository at this point in the history
  • Loading branch information
js2264 committed Jan 17, 2024
1 parent f575d43 commit 652dc72
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 16 deletions.
Binary file modified inst/extdata/microC_with-loops.rds
Binary file not shown.
21 changes: 5 additions & 16 deletions inst/pages/topological-features.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -313,20 +313,9 @@ you can import the annotated loops in `R` as follows:

```{r}
## Change the `.tsv` file to the local output file from chromosight
df <- readr::read_tsv(system.file('extdata', 'chromo.tsv', package = 'OHCA'))
loops <- InteractionSet::GInteractions(
anchor1 = GenomicRanges::GRanges(
df$chrom1, IRanges::IRanges(df$start1, df$end1)
),
anchor2 = GenomicRanges::GRanges(
df$chrom2, IRanges::IRanges(df$start2, df$end2)
),
bin_id1 = df$bin1,
bin_id2 = df$bin2,
score = df$score,
pvalue = df$pvalue,
qvalue = df$qvalue
)
loops <- system.file('extdata', 'chromo.tsv', package = 'OHCA') |>
readr::read_tsv() |>
plyinteractions::as_ginteractions(seqnames1 = chrom1, seqnames2 = chrom2)
loops
```
Expand All @@ -342,8 +331,8 @@ GenomicInteractions::export.bedpe(loops, 'loops.bedpe')
#### Visualizing chromatin loops

```{r}
p <- plotMatrix(
refocus(hic, 'chr17:62500001-63500000') |> zoom(5000),
plotMatrix(
hic,
loops = loops,
limits = c(-4, -1.2),
caption = FALSE
Expand Down

0 comments on commit 652dc72

Please sign in to comment.