Description Usage Arguments Details Value Author(s) See Also Examples
Defines bins about the 5' end of certain features of interest - these features are usually transcripts.
1 | defineBins(anno, zone, geneID="ensembl_gene_id", removeDuplicates=TRUE)
|
anno |
Rcade expects the following column names: |
zone |
|
geneID |
|
removeDuplicates |
|
The defineBins
function is useful when ChIP-seq bins are defined about ... . In particular, biomaRt data can be fed into this function directly. FIXME See vignette.
A GRanges
object, corresponding to genomic bins. This output can be used as the ChIPannoZones
argument in RcadeAnalysis
.
Jonathan Cairns
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run: ##acquire annotation from biomaRt
library(biomaRt)
anno <- getBM(
attributes= c("ensembl_gene_id", "chromosome_name",
"transcript_start", "transcript_end", "strand"),
mart= useDataset("hsapiens_gene_ensembl", useMart("ensembl"))
)
## End(Not run)
#define bins about the annotation
anno <- anno[order(anno$chromosome_name),]
colnames(anno) <- c("ENSG","chr","start","end","str")
ChIPannoZones <- defineBins(anno, c(-1500, 1500), geneID = "ENSG")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.