drawEScurve: draw Enriment Score curves for specific sites

Description Usage Arguments Details See Also Examples

Description

This function is used to draw Enriment Score curves for specific sites.

Usage

1
2
3
drawEScurve(curveInfoDataFrame, sites=NULL, max_p_value=0.1, min_es=0.2, outputDir=NULL, figKind=c("pdf","jpeg"))
## S4 method for signature 'data.frame'
drawEScurve(curveInfoDataFrame, sites=NULL, max_p_value=0.1, min_es=0.2, outputDir=NULL, figKind=c("pdf","jpeg"))

Arguments

curveInfoDataFrame

data.frame object: contains curve information for sites, see example.

sites

character vector: only draw curves for sites with ids appear in this vector.
default: draw curves for all the sites appear in curveInfoDataFrame.

max_p_value

numeric(1), only draw curves for sites with p-value less than this value.

min_es

numeric(1), only draw curves for sites with Enriment Score more than this value.

outputDir

character(1), output directory name for all the figures.

figKind

character(1), fig format: "pdf" or "jpeg".

Details

This function is used to draw Enrichment Score curves for specific sites. These curves show running-sum process for calculating enrichment score. The data.frame object contains curve information is given by asebSites or asebProteins.

See Also

SequenceInfo, readSequence, asebSites, asebProteins, drawStat.

Examples

1
2
3
4
5
6
    backgroundSites <- readSequence(system.file("extdata", "background_sites.fa", package="ASEB")) 
    prodefinedSites <- readSequence(system.file("extdata", "predefined_sites.fa", package="ASEB"))
    testSites <- readSequence(system.file("extdata", "sites_to_test.fa", package="ASEB"))
    resultList <- asebSites(backgroundSites, prodefinedSites, testSites, permutationTimes=100)
    drawEScurve(resultList$curveInfo, max_p_value=0.1, min_es=0.1, outputDir=tempdir(), figKind="jpeg")
    cat("see figures in output dir:", tempdir(),"\n")

ASEB documentation built on Nov. 8, 2020, 5:07 p.m.