Skip to content

Commit

Permalink
update vignettes
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristophH committed Jun 24, 2018
1 parent 529a860 commit 3e90f5e
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 16 deletions.
2 changes: 1 addition & 1 deletion inst/doc/batch_correction.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
digits = 2,
fig.width=5, fig.height=3, dpi=150, out.width = '70%'
fig.width=5, fig.height=3, dpi=100, out.width = '70%'
)

## ----load_packages, include=FALSE----------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion inst/doc/batch_correction.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
digits = 2,
fig.width=5, fig.height=3, dpi=150, out.width = '70%'
fig.width=5, fig.height=3, dpi=100, out.width = '70%'
)
```

Expand Down
4 changes: 2 additions & 2 deletions inst/doc/denoising.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
digits = 2,
fig.width=6, fig.height=4, dpi=150, out.width = '70%'
fig.width=6, fig.height=4, dpi=100, out.width = '70%'
)

## ----load_packages, include=FALSE----------------------------------------
Expand All @@ -28,7 +28,7 @@ pricu <- princurve::principal.curve(pca$x, smoother='lowess', f=0.5, stretch=333
# cell projection onto curve is maturation score
maturation_score <- pricu$lambda/max(pricu$lambda)

## ------------------------------------------------------------------------
## ---- fig.width=8, fig.height=4, out.width = '100%'----------------------
y_smooth <- sctransform::smooth_via_pca(vst_out$y, do_plot = TRUE)

## ------------------------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions inst/doc/denoising.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
digits = 2,
fig.width=6, fig.height=4, dpi=150, out.width = '70%'
fig.width=6, fig.height=4, dpi=100, out.width = '70%'
)
```

Expand Down Expand Up @@ -53,7 +53,7 @@ maturation_score <- pricu$lambda/max(pricu$lambda)

We will now smooth the Pearson residual by PCA. Internally `smooth_via_pca` performs PCA, then keeps only significant dimensions and back-rotates to the original data space. The number of significant dimensions is determined using the 'elbow' method. To speed things up we could also use only a subset of the genes for this operation (e.g. variable genes).

```{r}
```{r, fig.width=8, fig.height=4, out.width = '100%'}
y_smooth <- sctransform::smooth_via_pca(vst_out$y, do_plot = TRUE)
```

Expand Down
2 changes: 1 addition & 1 deletion inst/doc/differential_expression.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
digits = 2,
fig.width=4, fig.height=2.5, dpi=300, out.width = '70%'
fig.width=4, fig.height=2.5, dpi=100, out.width = '70%'
)

## ----load_packages, include=FALSE----------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion inst/doc/differential_expression.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
digits = 2,
fig.width=4, fig.height=2.5, dpi=300, out.width = '70%'
fig.width=4, fig.height=2.5, dpi=100, out.width = '70%'
)
```

Expand Down
2 changes: 1 addition & 1 deletion inst/doc/variance_stabilizing_transformation.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
digits = 2,
fig.width=4, fig.height=2.5, dpi=150, out.width = '70%'
fig.width=4, fig.height=2.5, dpi=100, out.width = '70%'
)

## ----load_packages, include=FALSE----------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion inst/doc/variance_stabilizing_transformation.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
digits = 2,
fig.width=4, fig.height=2.5, dpi=150, out.width = '70%'
fig.width=4, fig.height=2.5, dpi=100, out.width = '70%'
)
```

Expand Down
7 changes: 5 additions & 2 deletions sctransform.Rproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,8 @@ StripTrailingWhitespace: Yes

BuildType: Package
PackageUseDevtools: Yes
PackageInstallArgs: --no-multiarch --with-keep.source
PackageCheckArgs: --as-cran --no-vignettes --no-build-vignettes
PackageInstallArgs: --no-multiarch --with-keep.source --no-build-vignettes
PackageBuildArgs: --no-build-vignettes
PackageBuildBinaryArgs: --no-build-vignettes
PackageCheckArgs: --as-cran --no-build-vignettes
PackageRoxygenize: rd,collate,namespace
2 changes: 1 addition & 1 deletion vignettes/batch_correction.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
digits = 2,
fig.width=5, fig.height=3, dpi=150, out.width = '70%'
fig.width=5, fig.height=3, dpi=100, out.width = '70%'
)
```

Expand Down
2 changes: 1 addition & 1 deletion vignettes/denoising.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
digits = 2,
fig.width=6, fig.height=4, dpi=150, out.width = '70%'
fig.width=6, fig.height=4, dpi=100, out.width = '70%'
)
```

Expand Down
2 changes: 1 addition & 1 deletion vignettes/differential_expression.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
digits = 2,
fig.width=4, fig.height=2.5, dpi=300, out.width = '70%'
fig.width=4, fig.height=2.5, dpi=100, out.width = '70%'
)
```

Expand Down
2 changes: 1 addition & 1 deletion vignettes/variance_stabilizing_transformation.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
digits = 2,
fig.width=4, fig.height=2.5, dpi=150, out.width = '70%'
fig.width=4, fig.height=2.5, dpi=100, out.width = '70%'
)
```

Expand Down

0 comments on commit 3e90f5e

Please sign in to comment.