Skip to content

Commit

Permalink
revert to 20 dims
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewwbutler committed Jan 26, 2021
1 parent 8d5d9df commit 040536c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
6 changes: 3 additions & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ jobs:
mkdir output/images
mkdir output/timings
Rscript -e "pkgdown::init_site()"
Rscript -e "pkgdown::build_article('integration_introduction')"
# ls vignettes | grep -v 'pbmc3k_tutorial.Rmd' | grep -v 'assets' | grep -v 'vignettes.yaml' | cut -f 1 -d '.' | parallel -j4 "Rscript -e 'pkgdown::build_article(\"{}\")'"
# Rscript -e "pkgdown::build_site(lazy = TRUE)"
Rscript -e "pkgdown::build_article('pbmc3k_tutorial')"
ls vignettes | grep -v 'pbmc3k_tutorial.Rmd' | grep -v 'assets' | grep -v 'vignettes.yaml' | cut -f 1 -d '.' | parallel -j4 "Rscript -e 'pkgdown::build_article(\"{}\")'"
Rscript -e "pkgdown::build_site(lazy = TRUE)"
cp vignettes/assets/* docs/articles/assets/
displayName: 'Build pkgdown site'
- task: CopyFiles@2
Expand Down
11 changes: 4 additions & 7 deletions vignettes/integration_introduction.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ features <- SelectIntegrationFeatures(object.list = ifnb.list)
We then identify anchors using the `FindIntegrationAnchors()` function, which takes a list of Seurat objects as input, and use these anchors to integrate the two datasets together with `IntegrateData()`.

```{r find.anchors}
immune.anchors <- FindIntegrationAnchors(object.list = ifnb.list, anchor.features = features)
immune.anchors <- FindIntegrationAnchors(object.list = ifnb.list, anchor.features = features, dims = 1:20)
```

```{r integrate.data}
# this command creates an 'integrated' data assay
immune.combined <- IntegrateData(anchorset = immune.anchors)
immune.combined <- IntegrateData(anchorset = immune.anchors, dims = 1:20)
```

## Perform an integrated analysis
Expand All @@ -106,8 +106,8 @@ DefaultAssay(immune.combined) <- "integrated"
# Run the standard workflow for visualization and clustering
immune.combined <- ScaleData(immune.combined, verbose = FALSE)
immune.combined <- RunPCA(immune.combined, npcs = 30, verbose = FALSE)
immune.combined <- RunUMAP(immune.combined, reduction = "pca", dims = 1:30)
immune.combined <- FindNeighbors(immune.combined, reduction = "pca", dims = 1:30)
immune.combined <- RunUMAP(immune.combined, reduction = "pca", dims = 1:20)
immune.combined <- FindNeighbors(immune.combined, reduction = "pca", dims = 1:20)
immune.combined <- FindClusters(immune.combined, resolution = 0.5)
```

Expand Down Expand Up @@ -145,9 +145,6 @@ DimPlot(immune.combined, label = TRUE)

The `DotPlot()` function with the `split.by` parameter can be useful for viewing conserved cell type markers across conditions, showing both the expression level and the percentage of cells in a cluster expressing any given gene. Here we plot 2-3 strong marker genes for each of our 13 clusters.

```{r debug.save}
saveRDS(immune.combined, file = "../output/immune.combined.rds")
```

```{r splitdotplot, fig.height = 10}
Idents(immune.combined) <- factor(
Expand Down

0 comments on commit 040536c

Please sign in to comment.