ct2dot: ct2dot

Description Usage Arguments Value Examples

View source: R/ct2dot.R

Description

Given a RNA secondary structure,it compute the RNA secondary structure in bracket dot form

Usage

1
ct2dot(ctFile)

Arguments

ctFile

A RNA secondary structure file without the first line of free energy information

Value

return a list including the RNA seqence and the RNA secondary structure in bracket dot form

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
###
col1 <- c(1,2,3,4,5,6,7,8,9,10,11,12,13)
col2 <- c("G","A","C","U","G","G","G","G","C","G","G","U","C")
col3 <- c(0,1,2,3,4,5,6,7,8,9,10,11,12)
col4 <- c(2,3,4,5,6,7,8,9,10,11,12,13,0)
col5 <- c(13,12,11,10,9,0,0,0,5,4,3,2,1)
col6 <- c(1,2,3,4,5,6,7,8,9,10,11,12,13)
data <- matrix(c(col1,col2,col3,col4,col5,col6),byrow=FALSE,ncol = 6)
data <- as.data.frame(data)
ct2dot(data)

Example output

Loading required package: RRNA

Attaching package: 'RNAstructureModuleMiner'

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

    stem

[[1]]
[1] "(((((...)))))"

[[2]]
[1] "GACUGGGGCGGUC"

RNAstructureModuleMiner documentation built on May 1, 2019, 9:56 p.m.