Description Usage Arguments Value Examples
View source: R/Ularcirc_standalone.R
Takes one BSJ coordinate and generates a predicted circular RNA sequence.
1 2 | bsj_to_circRNA_sequence(BSJ, geneID = NULL, genome, TxDb,
annotationLibrary)
|
BSJ |
: BSJ coordinate in the format of chr_coordinate_chr_coorindate OR chr:coordinate-coorindate:strand. |
geneID |
: The gene ID that the BSJ aligns to. Not essential as this can be identified from the BSJ coordinate, however time performance of function improved if this information can be provided. |
genome |
: Is the length f the library fragment |
TxDb |
: The sequence read length |
annotationLibrary |
: annotation database. See details for example. |
Returns a DNAstring object.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | library('Ularcirc')
library('BSgenome.Hsapiens.UCSC.hg38')
library('TxDb.Hsapiens.UCSC.hg38.knownGene')
TxDb <- TxDb.Hsapiens.UCSC.hg38.knownGene::TxDb.Hsapiens.UCSC.hg38.knownGene
genome <- BSgenome.Hsapiens.UCSC.hg38::BSgenome.Hsapiens.UCSC.hg38
annotationLibrary <- org.Hs.eg.db::org.Hs.eg.db
# Define BSJ. Following two formats are accepted
BSJ <- 'chr2:40430305-40428472:-' # SLC8A1
BSJ <- 'chr2_40430305_chr2_40428472' # SLC8A1
circRNA_sequence <- bsj_to_circRNA_sequence(BSJ, "SLC8A1", genome,TxDb, annotationLibrary)
# You can also retrieve sequence without passing gene annotation - but this is slower
# circRNA_sequence <- bsj_to_circRNA_sequence(BSJ, NULL, genome,TxDb, annotationLibrary)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.