You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: vignettes/barbieQ.Rmd
+13-13Lines changed: 13 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -81,7 +81,7 @@ set.seed(2025)
81
81
82
82
- Monkey HSPC Cell Barcoding Data (monkeyHSPC)
83
83
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)^
85
85
Barcode counts within different samples were used to interpret the patterns of HSPC differentiation.
86
86
87
87
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.
- 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.
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.
154
154
155
155
- By specifying the parameter `method` by `diffProp` (defaulted), you are testing individual barcodes' **differential proportion** between conditions.
156
156
157
157
```{r test diffProp, fig.width=5, fig.height=4}
158
158
## test Barcode differential proportion between sample groups
159
-
exampleBBQ <- testBarcodeBias(
159
+
exampleBBQ <- testBarcodeSignif(
160
160
barbieQ = exampleBBQ,
161
-
sampleGroups = "Treat",
162
-
contrastLevels = c("ctrl", "drug"),
161
+
sampleGroup = "Treat",
163
162
method = "diffProp"
164
163
)
165
-
plotBarcodeBiasHeatmap(exampleBBQ) |> plot()
166
-
plotBarcodeBiasScatterPlot(exampleBBQ) |> plot()
164
+
plotSignifBarcodeHeatmap(exampleBBQ) |> plot()
165
+
plotSignifBarcodeProportion(exampleBBQ) |> plot()
166
+
plotBarcodeMA(exampleBBQ) |> plot()
167
167
```
168
168
169
169
- By specifying the parameter `method` by `diffOcc`, you are testing individual barcodes' **differential occurrence** between conditions.
170
170
171
171
```{r test diffOcc, fig.width=5, fig.height=4}
172
172
## test Barcode differential occurrence between sample groups
0 commit comments