
Last chance! 50% off unlimited learning
Sale ends in
This function extracts the ordered and disordered amino acids in protein or peptide sequences. The input to the function is provided by VSL2 software. Also, the function converts order amino acids to '10' and disorder amino acids to '01'.
DisorderB(
dirPath,
binaryType = "numBin",
outFormat = "mat",
outputFileDist = ""
)
Path of the directory which contains all output files of VSL2. Each file belongs to a sequence.
It can take any of the following values: ('strBin','logicBin','numBin'). 'strBin' (String binary): each amino acid is represented by a string containing 2 characters(0-1). order = "10" disorder="01". 'logicBin' (logical value): Each amino acid is represented by a vector containing 2 logical entries. order = c(TRUE,FALSE) disorder=c(FALSE,TRUE). 'numBin' (numeric bin): Each amino acid is represented by a numeric (i.e., integer) vector containing 2 numeric entries. order = c(1,0) disorder=c(0,1).
It can take two values: 'mat' (which stands for matrix) and 'txt'. The default value is 'mat'.
It shows the path and name of the 'txt' output file.
The output is different depending on the outFormat parameter ('mat' or 'txt'). If 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 if binaryType is 'strBin', the number of columns is the length of the sequences. Otherwise, it is equal to (length of the sequences)*2. If outFormat is 'txt', all binary values will be written to a tab-delimited file. Each line in the file shows the binary format of a sequence.
# NOT RUN {
dir = tempdir()
PredDisdir<-system.file("testForder",package="ftrCOOL")
PredDisdir<-paste0(PredDisdir,"/Disdir/")
ad1<-paste0(dir,"/disorderB.txt")
DisorderB(PredDisdir,binaryType="numBin",outFormat="txt",outputFileDist=ad1)
unlink("dir", recursive = TRUE)
# }
Run the code above in your browser using DataLab