reading multiple PDB files with Bio3D
Issue #337
resolved
I would like to read the multiple PDB files from a folder and would like to calculate the radius of gyration of each PDB file.
I calculated the radius of of gyration for a single file using the following program.
data<- read.pdb("/home/sanvi/Desktop/4q21.pdb")
mass <- rep(12, length(data$xyz)/3)
rgyr(d2, mass)
How can I calculate the radius of gyration for multiple PDB files?
Comments (2)
-
-
- changed status to resolved
This is a duplicated issue. All responses should go to issue
#338 - Log in to comment
Hi,
The simplest way is using lapply to loop over all pdb files. For example,