Description Usage Arguments Value Author(s) Examples
View source: R/siteNormalize.R
This function Comparing the sampled site with the normalized guitar coordinate system to find the relative position of each site in the zero to one coordinate system, and calculating the weight of each site at this position.
1 2 3 4 5 | normalize(sitesGRanges,
guitarTxdb,
txType,
overlapIndex,
siteLengthIndex)
|
sitesGRanges |
A kind of GRange object, generated by sampling the site. |
guitarTxdb |
Sites mapping on guitartxdb and finding the corresponding location on the transcript. |
txType |
Transcript type comparing with guitar coordinate's transcript type. |
overlapIndex |
Index of site overlapping times. Default: 1. |
siteLengthIndex |
Index of site length. Default: 1. |
A data list object contains two types of data information, one is the location information of the site, and the other is the weight information of the site.
Xiao Du<xiao.du@cumt.edu.cn>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | # read genomic features
stBedFile <- system.file("extdata", "m6A_mm10_exomePeak_1000peaks_bed12.bed", package="Guitar")
site <- blocks(import(stBedFile))
# read transcript information
txdb_file <- system.file("extdata", "mm10_toy.sqlite", package="Guitar")
txdb <- loadDb(txdb_file)
guitarTxdb <- makeGuitarTxdb(txdb)
sitesGRanges <- samplePoints(list(site),
stSampleNum = 5,
stAmblguity = 5,
pltTxType = c("mrna"),
stSampleModle = "Equidistance",
mapFilterTranscript = FALSE,
guitarTxdb)
sitesNormlize <- normalize(sitesGRanges,
guitarTxdb,
txType = "mrna",
overlapIndex = 1,
siteLengthIndex = 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.