Skip to content

Commit 38d26f1

Browse files
committed
update vignette
1 parent c297f30 commit 38d26f1

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

vignettes/barbieQ.Rmd

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ set.seed(2025)
8181

8282
- Monkey HSPC Cell Barcoding Data (monkeyHSPC)
8383

84-
A subset of data from a study on monkey HSPC cell expansion using barcoding technique.
84+
A subset of data from a study on monkey HSPC cell expansion using barcoding technique.^[NK clonal expansion](http://dx.doi.org/10.1126/sciimmunol.aat9781)), [barcodetrackRData](https://github.com/dunbarlabNIH/barcodetrackRData)^
8585
Barcode counts within different samples were used to interpret the patterns of HSPC differentiation.
8686

8787
It is a `SummarizedExperiment` object created using function `barbieQ::createBarbie`, containing a barcode count matrix with 16,603 rows and 62 columns, and a data frame of sample metadata.
@@ -133,7 +133,7 @@ plotBarcodePareto(barbieQ = exampleBBQ) |> plot()
133133
plotBarcodeSankey(barbieQ = exampleBBQ) |> plot()
134134
```
135135

136-
- Once you are happy with the classification of *"top"* and *"bottom"* barcodes, you can filter out the *"bottom"* barcodes by applying function `subsetBarcodes()` based on the tagged vector.
136+
- Once you are happy with the classification of *"top"* and *"bottom"* barcodes, you can filter out the *"bottom"* barcodes by subsetting the `SE` object based on the tagged array.
137137

138138
```{r subset top barcodes}
139139
exampleBBQ <- exampleBBQ[SummarizedExperiment::rowData(exampleBBQ)$isTopBarcode$isTop,]
@@ -150,34 +150,34 @@ plotSamplePairCorrelation(barbieQ = exampleBBQ) |> plot()
150150

151151
## Test Barcodes and Identify Significant Changes
152152

153-
Based on the understanding of sample conditions that likely result in the differences in barcode abundance, you can robustly test the significance of the barcode changes under a specific comparison between the sample conditions, by applying the function `testBarcodeBias()` to the `barbieQ` object. The testing results will be saved in the object, and be further visualized using functions: `plotBarcodeBiasHeatmap()` and `plotBarcodeBiasScatterPlot()`.
153+
Based on the understanding of sample conditions that likely result in the differences in barcode abundance, you can robustly test the significance of the barcode changes under a specific comparison between the sample conditions, by applying the function `testBarcodeSignif()` to the `barbieQ` object. The testing results will be saved in the object, and be further visualized using functions: `plotSignifBarcodeHeatmap()`, `plotSignifBarcodeProportion()`, `plotBarcodeMA()`, and etc.
154154

155155
- By specifying the parameter `method` by `diffProp` (defaulted), you are testing individual barcodes' **differential proportion** between conditions.
156156

157157
```{r test diffProp, fig.width=5, fig.height=4}
158158
## test Barcode differential proportion between sample groups
159-
exampleBBQ <- testBarcodeBias(
159+
exampleBBQ <- testBarcodeSignif(
160160
barbieQ = exampleBBQ,
161-
sampleGroups = "Treat",
162-
contrastLevels = c("ctrl", "drug"),
161+
sampleGroup = "Treat",
163162
method = "diffProp"
164163
)
165-
plotBarcodeBiasHeatmap(exampleBBQ) |> plot()
166-
plotBarcodeBiasScatterPlot(exampleBBQ) |> plot()
164+
plotSignifBarcodeHeatmap(exampleBBQ) |> plot()
165+
plotSignifBarcodeProportion(exampleBBQ) |> plot()
166+
plotBarcodeMA(exampleBBQ) |> plot()
167167
```
168168

169169
- By specifying the parameter `method` by `diffOcc`, you are testing individual barcodes' **differential occurrence** between conditions.
170170

171171
```{r test diffOcc, fig.width=5, fig.height=4}
172172
## test Barcode differential occurrence between sample groups
173-
exampleBBQ <- testBarcodeBias(
173+
exampleBBQ <- testBarcodeSignif(
174174
barbieQ = exampleBBQ,
175-
sampleGroups = "Treat",
176-
contrastLevels = c("ctrl", "drug"),
175+
sampleGroup = "Treat",
177176
method = "diffOcc"
178177
)
179-
plotBarcodeBiasHeatmap(exampleBBQ) |> plot()
180-
plotBarcodeBiasScatterPlot(exampleBBQ) |> plot()
178+
plotSignifBarcodeHeatmap(exampleBBQ) |> plot()
179+
plotSignifBarcodeProportion(exampleBBQ) |> plot()
180+
plotBarcodeMA(exampleBBQ) |> plot()
181181
```
182182

183183
# References

0 commit comments

Comments
 (0)