R4RNA-package: An R package for RNA visualization and analysis

Description Examples

Description

An R package for RNA visualization and analysis

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
    # Read input data
    predicted <- readHelix(system.file("extdata", "helix.txt", package = "R4RNA"))
    known <- readVienna(system.file("extdata", "vienna.txt", package = "R4RNA"))
    sequence <- as.character(readBStringSet(system.file("extdata", "fasta.txt", package = "R4RNA")))

    plotHelix(predicted)
    pval.coloured <- colourByValue(predicted, log = TRUE, get = TRUE)
    plotDoubleHelix(pval.coloured, known, scale = FALSE)
    plotOverlapHelix(pval.coloured, known)

    cov.coloured <- colourByCovariation(known, sequence, get = TRUE)
    plotCovariance(sequence, cov.coloured)
    
    plotDoubleCovariance(cov.coloured, pval.coloured, sequence,
        conflict.filter = "grey")
    plotOverlapCovariance(pval.coloured, known, sequence, grid = TRUE,
        conflict.filter = "grey", legend = FALSE, any = TRUE)

    # List of all functions
    ls("package:R4RNA")
    # use example() and help() for more details on each function

Example output

Loading required package: Biostrings
Loading required package: BiocGenerics
Loading required package: parallel

Attaching package: 'BiocGenerics'

The following objects are masked from 'package:parallel':

    clusterApply, clusterApplyLB, clusterCall, clusterEvalQ,
    clusterExport, clusterMap, parApply, parCapply, parLapply,
    parLapplyLB, parRapply, parSapply, parSapplyLB

The following objects are masked from 'package:stats':

    IQR, mad, sd, var, xtabs

The following objects are masked from 'package:base':

    Filter, Find, Map, Position, Reduce, anyDuplicated, append,
    as.data.frame, cbind, colMeans, colSums, colnames, do.call,
    duplicated, eval, evalq, get, grep, grepl, intersect, is.unsorted,
    lapply, lengths, mapply, match, mget, order, paste, pmax, pmax.int,
    pmin, pmin.int, rank, rbind, rowMeans, rowSums, rownames, sapply,
    setdiff, sort, table, tapply, union, unique, unsplit, which,
    which.max, which.min

Loading required package: S4Vectors
Loading required package: stats4

Attaching package: 'S4Vectors'

The following object is masked from 'package:base':

    expand.grid

Loading required package: IRanges
Loading required package: XVector

Attaching package: 'Biostrings'

The following object is masked from 'package:base':

    strsplit

 [1] "alignmentCanonical"        "alignmentConservation"    
 [3] "alignmentCovariation"      "alignmentPercentGaps"     
 [5] "as.helix"                  "baseConservation"         
 [7] "basepairCanonical"         "basepairConservation"     
 [9] "basepairCovariation"       "basepairFrequency"        
[11] "blankPlot"                 "collapseHelix"            
[13] "colourByBasepairFrequency" "colourByCanonical"        
[15] "colourByConservation"      "colourByCount"            
[17] "colourByCovariation"       "colourByUnknottedGroups"  
[19] "colourByValue"             "defaultPalette"           
[21] "expandHelix"               "helixCanonical"           
[23] "helixConservation"         "helixCovariation"         
[25] "helixToBpseq"              "helixToConnect"           
[27] "helixToVienna"             "is.helix"                 
[29] "isConflictingHelix"        "isDuplicatingHelix"       
[31] "isOverlappingHelix"        "logceiling"               
[33] "logfloor"                  "logseq"                   
[35] "maxHeight"                 "plotArc"                  
[37] "plotArcs"                  "plotCovariance"           
[39] "plotDoubleCovariance"      "plotDoubleHelix"          
[41] "plotHelix"                 "plotOverlapCovariance"    
[43] "plotOverlapHelix"          "readBpseq"                
[45] "readConnect"               "readHelix"                
[47] "readVienna"                "structureMismatchScore"   
[49] "unknottedGroups"           "viennaToHelix"            
[51] "writeHelix"               

R4RNA documentation built on Nov. 8, 2020, 5:15 p.m.