windowProfile: windowProfile for the GRanges objects

Description Usage Arguments Details Value Author(s) Examples

View source: R/windowProfile.R

Description

An function to check the position of peaks within the given GRanges windows.

Usage

1
2
3
4
5
6
7
windowProfile(
    object,
    annotation,
    title = "Window Profile",
    group = NA,
    nomap = FALSE
)

Arguments

object

A GRanges object which contains all the peaks that you want to check

annotation

A GRanges object that includes the customised genomic region.

title

The main title for the output meta gene profile plot.

group

The column name which contains the information of grouping for making the comparison plot. NA means all the peaks belongs to the same catagory.

nomap

A logical vector (TRUE or FALSE). It indicates whether you would like to exclude peaks that cannot assign to annotations in the plot.

Details

Here is an explanation of output meta data in the list 1:

Value

A list object, the list 1 contains the information of the assignment of the peaks and their position value within the given region. The value close to 1 means the peak close to the end of region in 3' end direction. The list 2 includes the ggplot of windowProfile.

Author(s)

You Zhou, Kathi Zarnack

Examples

1
2
3
4
5
6
7
## Load the test data and get the path to the test gff3 file
testpath <- system.file("extdata", package = "cliProfiler")
test <- readRDS(file.path(testpath, "test.rds"))
test_gff3 <- file.path(testpath, "annotation_test.gff3")
test_gff3 <- rtracklayer::import.gff3(test_gff3)

output <- windowProfile(test, test_gff3)

Codezy99/cliProfiler documentation built on Dec. 17, 2021, 2:59 p.m.