ct2knet | R Documentation |
Knet files are used as inputs for KnetFold secondary structure prediction program
ct2knet(file, ind = 0)
file |
Name of the CT file being converted to KnetFold file |
ind |
Index used to relabel sequence indexes |
Retuns a string containing the contains of the knet file
JP Bida
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 ###
ctfile = tempfile(fileext=".ct")
write.table(pk[,c(1,4,2,3,6,5)],file=ctfile,row.names=FALSE,col.names=TRUE)
### Convert CT file to Knet ###
out=ct2knet(ctfile,0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.