File: dynamic_structure.Rd

package info (click to toggle)
r-cran-bios2cor 2.2.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,520 kB
  • sloc: makefile: 5
file content (91 lines) | stat: -rw-r--r-- 3,261 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
\name{dynamic_structure}

\Rdversion{1.1}

\alias{dynamic_structure}

\title{
  Creates the data structure for the analysis of side chain dihedral angles   
}

\description{
  Given a structure pdb file, a trajectory dcd file and frame indices, gathers information on side chain dihedral angles in a unique structure. This structure will be used in correlation/covariation methods aimed at analyzing side chain rotational motions during molecular dynamics simulations.
}

\usage{
  dynamic_structure(pdb, trj, frames=NULL)
}

\arguments{
 \item{pdb}{
   Filepath of the  pdb file
 }
 \item{trj}{
   Filepath of trajectory file (dcd file)
 }
 \item{frames}{
   Indicates the selected frames for the analysis, created with the \code{seq} function (Usage: frames <-seq(from ,to , by= ). Default is NULL (all the frames of the trajectory are taken into account).  
 }
}


\value{
  Returns a list of class 'structure' with the following elements containing information on the sequence, structure, trajectory and side chain dihedral angles (values and names) of the protein during the simulation:
  \item{pdb}{
  an object of class 'pdb' created by the \code{read.pdb}function from the \code{bio3d} package
  }
  \item{dcd}{
  A numeric matrix of xyz coordinates with a frame per row and a Cartesian coordinate per column. Created by the \code{read.dcd}function from the \code{bio3d} package  
  }
  \item{xyz}{
  A numeric matrix of xyz coordinates with a frame per row and a Cartesian coordinate per column. For each frame, the protein coordinates have been fitted on the pdb structure using the \code{fit.xyz} from the \code{bio3d} package  
  }
  \item{tor}{
  A numeric matrix of side chain dihedral angles with a frame per row and a dihedral angle per column. Contains only side chain dihedral angles. Created by the \code{xyz2tor} function from the \code{bio3d} package  
  }
  \item{tor.names}{
  a character vector with the names of all side chain chi dihedral angles. They are written as "M.chiN" where M is the residue number and N the dihedral angle chi (chi1, chi2,...). Alanine and Glycine residues which do not have side chain dihedral angles are omitted. 
  }
  \item{tor.resno}{
  a character vector with the residue number M of all side chain chi dihedral angles. 
  }
  \item{tor.angle}{
  a character vector with the dihedral angle (chiN) of all side chain chi dihedral angles. 
  }
  \item{nb_torsions}{
  a numeric value indicating the total number of dihedral angles 
  }
  \item{prot.seq}{
  a character vector with the sequence of the protein 
  }
  \item{nb_residues}{
  a numeric value indicating the number of residues in the protein
  }
  \item{nb_frames}{
  a numeric value indicating the total number of selected frames 
  }
  \item{frames}{
  a numeric vector indicating the selected frames 
  }



}

\author{
  Bruck TADDESE, Antoine GARNIER and Marie CHABBERT
}

\examples{
  #Reading pdb and dcd files
  pdb <- system.file("rotamer/toy_coordinates.pdb", package= "Bios2cor")
  trj <- system.file("rotamer/toy_dynamics.dcd", package= "Bios2cor")
  
  #Creating dynamic_structure object for selected frames  
  wanted_frames <- seq(from = 1, to = 40, by = 2)
  dynamic_structure <- dynamic_structure(pdb, trj, wanted_frames)


}