ct2knet: creates a knet file from a CT file

Description Usage Arguments Value Author(s) Examples

Description

Knet files are used as inputs for KnetFold secondary structure prediction program

Usage

1
ct2knet(file, ind = 0)

Arguments

file

Name of the CT file being converted to KnetFold file

ind

Index used to relabel sequence indexes

Value

Retuns a string containing the contains of the knet file

Author(s)

JP Bida

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
pk=makeCt("((((...(((((((.........)))))))...((((.........))))...))))",
          "AAAAAAAACCCCCCCCAAAGGGGGGGAUUACCCCUCCUUUAAAAGGGUUUUCCCCCCC"
         )
pk$bound[pk$pos==20]=42
pk$bound[pk$pos==19]=43
pk$bound[pk$pos==43]=19
pk$bound[pk$pos==42]=20

### Create a CT file for testing ###
write.table(pk[,c(1,4,2,3,6,5)],file="test.ct",row.names=FALSE,col.names=TRUE)

### Convert CT file to Knet ###
out=ct2knet("test.ct",0)

Example output



RRNA documentation built on May 2, 2019, 1:06 p.m.