Skip to content

Commit b9b2fc0

Browse files
committed
update data
1 parent caadd29 commit b9b2fc0

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

R/monkeyHSPC.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#' This dataset includes data from the 'ZG66' monkey individual only. Additional datasets are available at the source link.
1818
#'
1919
#' @format ## `monkeyHSPC`
20-
#' A list containing:
20+
#' A `SummarizedExperiment` object containing:
2121
#' - A barcode count matrix with 16,603 rows and 62 columns,
2222
#' - A a data frame of sample metadata.
2323
#' - other components associated with this `barbieQ` package.

data/monkeyHSPC.rda

179 KB
Binary file not shown.

inst/scripts/monkeyHSPC.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#' This dataset includes data from the "ZG66" monkey individual only. Additional datasets are available at the source link.
1818
#'
1919
#' @format ## `monkeyHSPC`
20-
#' A list containing:
20+
#' A `SummarizedExperiment` object containing:
2121
#' - A barcode count matrix with 16,603 rows and 62 columns,
2222
#' - A a data frame of sample metadata.
2323
#' - other components associated with this `barbieQ` package.
@@ -52,7 +52,7 @@ colnames(metadata)[grepl("Cell_type", colnames(metadata))] <- "Celltype"
5252
metadata$Timepoint <- NULL
5353

5454
## create an object to store the barcode count matrix and sample metadata.
55-
monkeyHSPC <- barbieQ::createBarbieQ(object = count, target = metadata)
55+
monkeyHSPC <- barbieQ::createBarbieQ(object = count, sampleMetadata = metadata)
5656

5757
## save the package exported data.
5858
usethis::use_data(monkeyHSPC, overwrite = TRUE)

vignettes/barbieQ.Rmd

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ The main functions include:
4242

4343
* `plotBarcodeProportion()`
4444

45-
* `testBarcodeBias()`
45+
* `testBarcodeSignif()`
4646

47-
* `plotBarcodeBiasScatterPlot()`
47+
* `plotSignifBarcodeProportion()`
4848

4949
# Intallation
5050

@@ -71,15 +71,18 @@ suppressPackageStartupMessages({
7171
library(data.table)
7272
library(ComplexHeatmap)
7373
library(limma)
74+
library(SummarizedExperiment)
75+
library(S4Vectors)
7476
})
7577
```
7678

77-
# Simulate Data to Use
79+
# Load Package Data
7880

7981
An example dataset on barcode count will be implemented from published clonal track research for better demonstrating the function in the package.
8082

8183
```{r data}
8284
## Sample conditions and color palettes
85+
data(monkeyHSPC, package = "barbieQ")
8386
sampleConditions <- data.frame(
8487
Treat = factor(rep(c("ctrl", "drug"), each = 6)),
8588
Time = rep(rep(seq_len(2), each = 3), 2)
@@ -106,7 +109,7 @@ By creating a `barbieQ` object, you've automatically processed a series of data
106109
```{r example, fig.width=8, fig.height=6}
107110
## Passing `object`, `target` and `factorColors`
108111
exampleBBQ <- createBarbieQ(
109-
object = barcodeCount, target = sampleConditions, factorColors = conditionColor
112+
object = barcodeCount, sampleMetadata = sampleConditions, factorColors = conditionColor
110113
)
111114
```
112115

0 commit comments

Comments
 (0)