Skip to content

Commit

Permalink
Change example region
Browse files Browse the repository at this point in the history
  • Loading branch information
timoast committed Jun 6, 2024
1 parent 6d177e0 commit 0da4d6d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions vignettes/pbmc_vignette.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -719,14 +719,14 @@ links (if they're stored in the object). See the

For plotting purposes, it's nice to have related cell types grouped together. We
can automatically sort the plotting order according to similarities across the
annotated cell types by running the `SortIdents()` function:
annotated cell types by running the `SortIdents()` function:

```{r message=FALSE, warning=FALSE}
pbmc <- SortIdents(pbmc)
```

We can then visualize the DA peaks open in CD4 naive cells and CD14 monocytes,
near some key marker genes for these cell types, CD4 and FCN1 respectively.
near some key marker genes for these cell types, CD4 and LYZ respectively.
Here we'll highlight the DA peaks regions in grey.

```{r message=FALSE, warning=FALSE, out.width='90%', fig.height=6}
Expand All @@ -743,14 +743,14 @@ CoveragePlot(
```

```{r message=FALSE, warning=FALSE, out.width='90%', fig.height=6}
regions_highlight <- subsetByOverlaps(StringToGRanges(open_cd14mono), LookupGeneCoords(pbmc, "FCN1"))
regions_highlight <- subsetByOverlaps(StringToGRanges(open_cd14mono), LookupGeneCoords(pbmc, "LYZ"))
CoveragePlot(
object = pbmc,
region = "FCN1",
region = "LYZ",
region.highlight = regions_highlight,
extend.upstream = 1000,
extend.downstream = 1000
extend.downstream = 5000
)
```

Expand Down

0 comments on commit 0da4d6d

Please sign in to comment.