if(interactive()){
file = file.path(path.package("BioSeqClass"), "example", "acetylation_K.fasta")
tmp = readAAStringSet(file)
proteinSeq = as.character(tmp)
DSSP1 = getDSSP(c("108l","43ca"))
DSSP2 = getDSSP(c("108l","43ca","aaaa"))
## Predict protein secordary strucutre
PROTEUS = predictPROTEUS(proteinSeq[1:2],proteus2.organism="euk")
## Use general feature conding functions to codes protein secordary strucutre
secondaryStructure = sapply(PROTEUS,function(x){paste(x[["PROTEUS2"]]$SecondaryStructure,collapse="")})
confidenceScore = sapply(PROTEUS,function(x){paste(x[["PROTEUS2"]]$ConfidenceScore,collapse="")})
SSCTD = featureCTD(secondaryStructure, class=list("H"="H","E"="E","C"="C"))
# Codes for peptides which have equal length and their central residues are important
secondaryStructure = sapply(PROTEUS,function(x){sub.seq(paste(x[["PROTEUS2"]]$SecondaryStructure,collapse=""), 1, 11)})
confidenceScore = sapply(PROTEUS,function(x){sub.seq(paste(x[["PROTEUS2"]]$ConfidenceScore,collapse=""), 1, 11)})
SS1 = featureSSC(secondaryStructure, confidenceScore)
}
Run the code above in your browser using DataLab