Learn R Programming

ftrCOOL (version 2.0.0)

TorsionAngle: Torsion Angle (TorsionAngle)

Description

The inputs to this function are phi and psi angles of each amino acid in the sequence. We use the output of SPINE-X software to obtain the angles. Further, the TA function replaces each amino acid of the sequence with a vector. The vector contain two elements: The phi and psi angles.

Usage

TorsionAngle(dirPath, outFormat = "mat", outputFileDist = "")

Arguments

dirPath

Path of the directory which contains all output files of SPINE-X. Each file belongs to a sequence.

outFormat

It can take two values: 'mat' (which stands for matrix) and 'txt'. The default value is 'mat'.

outputFileDist

It shows the path and name of the 'txt' output file.

Value

The output is differnet depending on the outFormat parameter ('mat' or 'txt'). If the outFormat is set to 'mat', it returns a feature matrix for sequences with the same lengths. The number of rows is equal to the number of sequences and the number of columns is (length of the sequence)*2. If the outFormat is set to 'txt', all binary values will be writen in a 'txt' file. Each row belongs to a sequence.

Examples

Run this code
# NOT RUN {
dir = tempdir()
ad<-paste0(dir,"/ta.txt")

PredTorsioNdir<-system.file("testForder",package="ftrCOOL")
PredTorsioNdir<-paste0(PredTorsioNdir,"/TorsioNdir/")
mat<-TorsionAngle(PredTorsioNdir,outFormat="txt",outputFileDist=ad)

unlink("dir", recursive = TRUE)
# }

Run the code above in your browser using DataLab