Description Usage Arguments Value Author(s) Examples

This function calculates the length of each sites and then samples the points from sites by using two sampling methods based on the number of sampling points. One sampling method is equidistant sampling, the N sampling points are sampled at equal intervals according to the length of the site. Another method is random sampling, and N sampling points are randomly distributed on the site.

1 2 3 4 5 6 7 8 | ```
samplePoints(sitesGrangelists,
stSampleNum = 5,
stAmblguity = 5,
pltTxType = c("tx","mrna","ncrna"),
stSampleModle = "Equidistance",
mapFilterTranscript = FALSE,
guitarTxdb)
``` |

`sitesGrangelists` |
A GRangeslist object, the content of the sites information. |

`stSampleNum` |
The number of bases sampled at each Site. Default: 3. |

`stAmblguity` |
Maximum overlap between sites. Default: 5. |

`pltTxType` |
Transcript type mapped to guitartxdb. |

`stSampleModle` |
sampling "Equidistance",sampling "random". Default:"Equidistance". |

`mapFilterTranscript` |
Whether to filter the length of transcripts equal the original site. Default: FALSE. |

`guitarTxdb` |
Sites mapping on guitartxdb and finding the corresponding location on the transcript. |

A GRange data list, the content of the list is the sampling point, the width is 1, the total number of data is N times the input data.

Xiao Du<xiao.du@cumt.edu.cn>

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ```
# read genomic features
stBedFile <- system.file("extdata", "m6A_mm10_exomePeak_1000peaks_bed12.bed", package="Guitar")
site <- blocks(import(stBedFile))
#generate GuitarTxdb
txdb_file <- system.file("extdata", "mm10_toy.sqlite", package="Guitar")
txdb <- loadDb(txdb_file)
guitarTxdb <- makeGuitarTxdb(txdb)
# sample site points
sitesPoints <- samplePoints(list(site),
stSampleNum = 5,
stAmblguity = 5,
pltTxType = c("tx","mrna","ncrna"),
stSampleModle = "Equidistance",
mapFilterTranscript = FALSE,
guitarTxdb)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.