loadCoords: Loads a coordinate file into a data frame

Description Usage Arguments Value Author(s) References Examples

Description

Coordinate files can be created from the viennaRNA library.

Usage

1
loadCoords(filename)

Arguments

filename

Name of the coordinate file being loaded

Value

Data frame containing the coordinate file

Author(s)

JP Bida

References

The RRNAFold program generates the coordinate files used by RRNA

https://github.com/jpbida/ViennaScripts

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
### Create a test coordinate file using ct2coord ###
ct=makeCt("((((...(((((((.........)))))))...((((.........))))...))))",
          "AAAAAAAACCCCCCCCAAAGGGGGGGAUUACCCCUCCUUUAAAAGGGUUUUCCCCCCC" 
         )
coord=ct2coord(ct)
### add an id ###
coord$id=1

### write out test file ###
write.table( coord[,c('id','x','y','seq','num','bound')],
             col.names=FALSE,row.names=FALSE,sep=",",file="test.cr"
           )

### Read in the coordinate file ##
input=loadCoords("test.cr")

### Plot the file using RNAPlot ##
RNAPlot(input)


Search within the RRNA package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.