Skip to content

Commit

Permalink
fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
stemangiola committed Sep 24, 2024
1 parent e280ea6 commit 498f67c
Show file tree
Hide file tree
Showing 13 changed files with 209 additions and 21 deletions.
1 change: 1 addition & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Depends:
Imports:
SummarizedExperiment,
SingleCellExperiment,
SeuratObject,
Seurat,
tidySummarizedExperiment,
tidySingleCellExperiment,
Expand Down
4 changes: 4 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
# Generated by roxygen2: do not edit by hand

import(SeuratObject)
importFrom(SingleCellExperiment,SingleCellExperiment)
importFrom(SummarizedExperiment,SummarizedExperiment)
importFrom(ggplot2,theme)
73 changes: 70 additions & 3 deletions R/data_transcriptomics.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#'
#' @format A `Seurat` object.
#' @usage data(seurat_obj)
#' @importFrom Seurat Seurat
#' @import SeuratObject
"seurat_obj"

#' gate_seurat_obj
Expand All @@ -30,7 +30,7 @@
#'
#' @format A `Seurat` object.
#' @usage data(seurat_obj_UMAP3)
#' @importFrom Seurat Seurat
#' @import SeuratObject
"seurat_obj_UMAP3"

#' pseudo_bulk
Expand Down Expand Up @@ -91,4 +91,71 @@
#' @format A `ggplot2` theme.
#' @usage data(theme_multipanel)
#' @importFrom ggplot2 theme
"theme_multipanel"
"theme_multipanel"

#' tidygate_env_gates
#'
#' A set of gates interactively drawn for spatial data using the `tidygate` package.
#'
#' This object contains gates that were drawn interactively on spatial data based on tissue morphology,
#' highlighting areas of interest for future reproducible analysis. These gates can be loaded and applied
#' to similar data for consistent and automated gating.
#'
#' @details
#' Gates were saved programmatically for future use. The object was created using the `gate` function
#' in `tidygate` and saved as an RDS file for reproducibility. This can be particularly useful in spatial
#' transcriptomics data analysis where regions of interest are manually gated.
#'
#' @return A list of x and y coordinates representing the interactive gates.
#'
#' @format A list containing the x and y coordinates for gates.
#'
#' @usage data(tidygate_env_gates)
#'
#' @examples
#' # Load the gates
#' data(tidygate_env_gates)
#'
#' # Apply the gates to new data for reproducible analysis
#' # spatial_data <- applyGates(spatial_data, gates = tidygate_env_gates)
#'
#' @source Created interactively using the `tidygate` package
"tidygate_env_gates"

#' pbmc_h3k4me3_hg38
#'
#' H3K4me3 peaks for human PBMCs lifted over to hg38 genome assembly
#'
#' This object contains H3K4me3 peaks for human peripheral blood mononuclear cells (PBMCs) mapped to
#' the hg38 genome assembly. The peaks were initially from hg19 and were lifted over to hg38 using
#' a UCSC chain file. The peaks contain several columns of information including signal value,
#' q-value, and peak locations, which can be used for visualisation and analysis.
#'
#' @details
#' The H3K4me3 peaks were lifted over from the hg19 to hg38 genome assembly using the `liftOver`
#' function from the `rtracklayer` package. The `seqlevels` and `seqinfo` were aligned with the
#' `SingleCellExperiment` object `sce_sub`. The Ensembl-style chromosome naming convention (NCBI)
#' was applied for consistency. This dataset contains selected columns such as `signalValue`,
#' `qValue`, and `peak`, making it ready for downstream analysis or plotting.
#'
#' @return A GRanges object containing the H3K4me3 peaks for PBMCs in the hg38 genome assembly.
#'
#' @format A `GRanges` object with columns:
#' \describe{
#' \item{signalValue}{The signal value for each peak.}
#' \item{qValue}{The q-value for the significance of each peak.}
#' \item{peak}{The peak location in the genome.}
#' }
#'
#' @usage data(pbmc_h3k4me3_hg38)
#'
#' @examples
#' # Load the dataset
#' data(pbmc_h3k4me3_hg38)
#'
#' # Plot q-values of the H3K4me3 peaks
#' plot(pbmc_h3k4me3_hg38$qValue, type="l", ylab="q-value", main="H3K4me3 peaks")
#' abline(v=5000, lty=2)
#'
#' @source H3K4me3 peak data was lifted from hg19 to hg38 using UCSC liftOver chain files.
"pbmc_h3k4me3_hg38"
8 changes: 6 additions & 2 deletions man/gate_sce_obj.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions man/gate_seurat_obj.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

48 changes: 48 additions & 0 deletions man/pbmc_h3k4me3_hg38.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions man/pseudo_bulk.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions man/sce_obj.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions man/sce_obj_UMAP3.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions man/seurat_obj.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions man/seurat_obj_UMAP3.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions man/theme_multipanel.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 39 additions & 0 deletions man/tidygate_env_gates.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 498f67c

Please sign in to comment.