Browse code

Update README

- More details
- Installation instructions
- Citation
- Add badges

Milan Malfait authored on 17/02/2021 11:04:01
Showing 2 changed files

... ...
@@ -16,17 +16,64 @@ knitr::opts_chunk$set(
16 16
 # spatialDE
17 17
 
18 18
 <!-- badges: start -->
19
+[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)
20
+[![R-CMD-check-bioc](https://github.com/sales-lab/spatialDE/workflows/R-CMD-check-bioc/badge.svg)](https://github.com/sales-lab/spatialDE/actions)
19 21
 <!-- badges: end -->
20 22
 
21
-R wrapper for SpatialDE
23
+The **spatialDE** package provides an R wrapper for the Python SpatialDE library,
24
+using `r BiocStyle::CRANpkg("reticulate")` and `r BiocStyle::Biocpkg("basilisk")`.
22 25
 
23
-[SpatialDE](https://github.com/Teichlab/SpatialDE) by [Svensson et al., 2018](https://www.nature.com/articles/nmeth.4636), is a method to identify spatially variable genes (SVGs) in spatially resolved 
24
-transcriptomics data.
26
+[SpatialDE](https://github.com/Teichlab/SpatialDE), by [Svensson et al., 2018][Svensson2018],
27
+is a method to identify spatially variable genes (SVGs) in spatially resolved transcriptomics data.
28
+
29
+This package started as part of the
30
+[BiocSpatialChallenges](https://helenalc.github.io/BiocSpatialChallenges/index.html).
31
+
32
+
33
+## Installation instructions
34
+
35
+<!-- Get the latest stable `R` release from [CRAN](http://cran.r-project.org/). Then install `spatialDE` using from [Bioconductor](http://bioconductor.org/) the following code: -->
36
+
37
+<!-- ```{r 'install', eval = FALSE} -->
38
+<!-- if (!requireNamespace("BiocManager", quietly = TRUE)) { -->
39
+<!--     install.packages("BiocManager") -->
40
+<!-- } -->
41
+
42
+<!-- BiocManager::install("spatialDE") -->
43
+<!-- ``` -->
44
+
45
+The development version of **spatialDE** can be installed from
46
+[GitHub](https://github.com/sales-lab/spatialDE) with:
47
+
48
+```{r 'install_dev', eval = FALSE}
49
+if (!requireNamespace("BiocManager", quietly = TRUE)) {
50
+    install.packages("BiocManager")
51
+    
52
+BiocManager::install("sales-lab/spatialDE")
53
+```
54
+
55
+## Citation
56
+
57
+Below is the citation output from using `citation('spatialDE')` in R. Please
58
+run this yourself to check for any updates on how to cite __spatialDE__.
59
+
60
+Please note that this package merely provides a wrapper to use the original Python methods in R. If you find these methods useful, please also consider citing the [original paper][Svensson2018].
61
+
62
+```{r 'citation', eval = requireNamespace('spatialDE'), echo = FALSE, comment = ""}
63
+print(citation('spatialDE'), bibtex = TRUE)
64
+```
65
+
66
+
67
+## Code of Conduct
68
+
69
+Please note that the **spatialDE** project is released with a [Contributor Code of Conduct](https://contributor-covenant.org/version/2/0/CODE_OF_CONDUCT.html). By contributing to this project, you agree to abide by its terms.
25 70
 
26
-## Aim of the repository
27
-- create a wrapper for spatialDE in R, using `reticulate` and `basilisk`
28
-- create a short script with an example workflow showing how to use the wrapper
29 71
 
30 72
 ## Useful links
31
-- [SpatialExperiment](https://github.com/drighelli/SpatialExperiment)
73
+
74
+- `r BiocStyle::Biocpkg("SpatialExperiment")`
32 75
 - [BiocSpatialChallenges](https://helenalc.github.io/BiocSpatialChallenges/index.html)
76
+
77
+This package was developed using `r BiocStyle::Biocpkg('biocthis')`.
78
+
79
+[Svensson2018]: https://doi.org/10.1038/nmeth.4636
... ...
@@ -5,23 +5,83 @@
5 5
 
6 6
 <!-- badges: start -->
7 7
 
8
+[![Lifecycle:
9
+experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)
10
+[![R-CMD-check-bioc](https://github.com/sales-lab/spatialDE/workflows/R-CMD-check-bioc/badge.svg)](https://github.com/sales-lab/spatialDE/actions)
8 11
 <!-- badges: end -->
9 12
 
10
-R wrapper for SpatialDE
13
+The **spatialDE** package provides an R wrapper for the Python SpatialDE
14
+library, using
15
+*[reticulate](https://CRAN.R-project.org/package=reticulate)* and
16
+*[basilisk](https://bioconductor.org/packages/3.12/basilisk)*.
11 17
 
12
-[SpatialDE](https://github.com/Teichlab/SpatialDE) by [Svensson et
13
-al., 2018](https://www.nature.com/articles/nmeth.4636), is a method to
14
-identify spatially variable genes (SVGs) in spatially resolved
15
-transcriptomics data.
18
+[SpatialDE](https://github.com/Teichlab/SpatialDE), by [Svensson et al.,
19
+2018](https://doi.org/10.1038/nmeth.4636), is a method to identify
20
+spatially variable genes (SVGs) in spatially resolved transcriptomics
21
+data.
16 22
 
17
-## Aim of the repository
23
+This package started as part of the
24
+[BiocSpatialChallenges](https://helenalc.github.io/BiocSpatialChallenges/index.html).
18 25
 
19
-  - create a wrapper for spatialDE in R, using `reticulate` and
20
-    `basilisk`
21
-  - create a short script with an example workflow showing how to use
22
-    the wrapper
26
+## Installation instructions
27
+
28
+<!-- Get the latest stable `R` release from [CRAN](http://cran.r-project.org/). Then install `spatialDE` using from [Bioconductor](http://bioconductor.org/) the following code: -->
29
+<!-- ```{r 'install', eval = FALSE} -->
30
+<!-- if (!requireNamespace("BiocManager", quietly = TRUE)) { -->
31
+<!--     install.packages("BiocManager") -->
32
+<!-- } -->
33
+<!-- BiocManager::install("spatialDE") -->
34
+<!-- ``` -->
35
+
36
+The development version of **spatialDE** can be installed from
37
+[GitHub](https://github.com/sales-lab/spatialDE) with:
38
+
39
+``` r
40
+if (!requireNamespace("BiocManager", quietly = TRUE)) {
41
+    install.packages("BiocManager")
42
+    
43
+BiocManager::install("sales-lab/spatialDE")
44
+```
45
+
46
+## Citation
47
+
48
+Below is the citation output from using `citation('spatialDE')` in R.
49
+Please run this yourself to check for any updates on how to cite
50
+**spatialDE**.
51
+
52
+Please note that this package merely provides a wrapper to use the
53
+original Python methods in R. If you find these methods useful, please
54
+also consider citing the [original
55
+paper](https://doi.org/10.1038/nmeth.4636).
56
+
57
+
58
+    To cite package 'spatialDE' in publications use:
59
+
60
+      Davide Corso and Milan Malfait (2021). spatialDE: R wrapper for
61
+      SpatialDE. R package version 0.1.8.
62
+      https://github.com/sales-lab/spatialDE
63
+
64
+    A BibTeX entry for LaTeX users is
65
+
66
+      @Manual{,
67
+        title = {spatialDE: R wrapper for SpatialDE},
68
+        author = {Davide Corso and Milan Malfait},
69
+        year = {2021},
70
+        note = {R package version 0.1.8},
71
+        url = {https://github.com/sales-lab/spatialDE},
72
+      }
73
+
74
+## Code of Conduct
75
+
76
+Please note that the **spatialDE** project is released with a
77
+[Contributor Code of
78
+Conduct](https://contributor-covenant.org/version/2/0/CODE_OF_CONDUCT.html).
79
+By contributing to this project, you agree to abide by its terms.
23 80
 
24 81
 ## Useful links
25 82
 
26
-  - [SpatialExperiment](https://github.com/drighelli/SpatialExperiment)
27
-  - [BiocSpatialChallenges](https://helenalc.github.io/BiocSpatialChallenges/index.html)
83
+-   *[SpatialExperiment](https://bioconductor.org/packages/3.12/SpatialExperiment)*
84
+-   [BiocSpatialChallenges](https://helenalc.github.io/BiocSpatialChallenges/index.html)
85
+
86
+This package was developed using
87
+*[biocthis](https://bioconductor.org/packages/3.12/biocthis)*.