Description Usage Arguments Details Value Author(s) Examples
Functions to coerce a structure into a helix data frame, and to check whether a structure is a valid helix data frame. A helix data frame is a data frame, so any structure coercible into a data.frame can become a helix data frame.
1 2 |
x |
Structure to coerce. Should be a structure coercible into a standard
R data.frame structure for |
length |
The length of the RNA sequence containing the helices. |
as.helix
takes in a data.frame and coerces it into a
helix data frame acceptable by other R4RNA functions. This mainly involves
setting specific column names and casting to specific types.
is.helix
returns a boolean.
as.helix
returns helix data frame with valid input.
Daniel Lai
1 2 3 4 5 6 7 8 |
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’:
anyDuplicated, append, as.data.frame, basename, cbind, colnames,
dirname, do.call, duplicated, eval, evalq, Filter, Find, get, grep,
grepl, intersect, is.unsorted, lapply, Map, mapply, match, mget,
order, paste, pmax, pmax.int, pmin, pmin.int, Position, rank,
rbind, Reduce, rownames, sapply, setdiff, sort, table, tapply,
union, unique, unsplit, 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] FALSE
Warning messages:
1: In is.helix(helix) : No length attribute
2: In is.helix(helix) : Columns of invalid class
3: In is.helix(helix) : Invalid column names
Warning messages:
1: In is.helix(helix) : No length attribute
2: In is.helix(helix) : Columns of invalid class
3: In is.helix(helix) : Invalid column names
[1] TRUE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.