| addData | R Documentation |
GRN objectAdd data to a GRN object
addData( GRN, counts_peaks, normalization_peaks = "DESeq_sizeFactor", idColumn_peaks = "peakID", counts_rna, normalization_rna = "quantile", idColumn_RNA = "ENSEMBL", sampleMetadata = NULL, allowOverlappingPeaks = FALSE, forceRerun = FALSE )
GRN |
Object of class |
counts_peaks |
Data frame. No default. Counts for the peaks, with raw or normalized counts for each peak (rows) across all samples (columns). In addition to the count data, it must also contain one ID column with a particular format, see the argument |
normalization_peaks |
Character. Default |
idColumn_peaks |
Character. Default |
counts_rna |
Data frame. No default. Counts for the RNA-seq data, with raw or normalized counts for each gene (rows) across all samples (columns). In addition to the count data, it must also contain one ID column with a particular format, see the argument |
normalization_rna |
Character. Default |
idColumn_RNA |
Character. Default |
sampleMetadata |
Data frame. Default |
allowOverlappingPeaks |
|
forceRerun |
|
The same GRN object, with added data from this function.
# See the Workflow vignette on the GRaNIE website for examples
# library(tidyverse)
# rna.df = read_tsv("https://www.embl.de/download/zaugg/GRaNIE/rna.tsv.gz")
# peaks.df = read_tsv("https://www.embl.de/download/zaugg/GRaNIE/peaks.tsv.gz")
# meta.df = read_tsv("https://www.embl.de/download/zaugg/GRaNIE/sampleMetadata.tsv.gz")
# GRN = loadExampleObject()
# We omit sampleMetadata = meta.df in the following line, becomes too long otherwise
# GRN = addData(GRN, counts_peaks = peaks.df, counts_rna = rna.df, forceRerun = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.