Skip to content

Commit

Permalink
making reproducible vignette
Browse files Browse the repository at this point in the history
  • Loading branch information
rpolicastro committed May 13, 2020
1 parent b5ce957 commit f124570
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,25 @@ This library pulls the meta-data from a seurat object for its analysis.
This means that you must first process your data in seurat.
Seurat has various [vignettes](https://satijalab.org/seurat/vignettes.html) to get you started.

Once you have a seurat object, you are ready to get started. This first step is to create the
analysis object.
Once you have a seurat object, you are ready to get started.
We'll first load some example data for the vignette, adn create the analysis object.

```
library("scProportionTest")
prop_test <- sc_utils(seurat_object)
seurat_data <- system.file("extdata", "example_data.RDS", package = "scProportionTest")
seurat_data <- readRDS(seurat_data)
prop_test <- sc_utils(seurat_data)
```

Once the object is created, the permutation testing and bootstrapping can be run.

```
prop_test <- permutation_test(
prop_test, cluster_identity = "final_clusters",
sample_1 = "EV", sample_2 = "KD",
sample_identity = "orig.ident",
prop_test, cluster_identity = "custom_clusters",
sample_1 = "HT29_EV", sample_2 = "HT29_LSD1_KD",
sample_identity = "orig.ident"
)
```

Expand All @@ -44,3 +47,5 @@ A point-range plot of the results can then be created.
```
permutation_plot(prop_test)
```

![example_plot](inst/images/example_plot.png)
Binary file added inst/extdata/example_data.RDS
Binary file not shown.
Binary file added inst/images/example_plot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f124570

Please sign in to comment.