-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathPDB.jl
134 lines (126 loc) · 2.54 KB
/
PDB.jl
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
"""
The module `PDB` defines types and methods to work with protein structures inside Julia.
It is useful to link structural and sequential information, and
needed for measure the predictive performance at protein contact prediction of mutual information scores.
**Features**
- Read and parse PDF and PDBML files
- Calculate distance and contacts between atoms or residues
- Determine interaction between residues
```julia
using MIToS.PDB
```
"""
module PDB
import LightXML
using RecipesBase # Plots for PDB Residues
using AutoHashEquals
using StaticArrays
using OrderedCollections
using PairwiseListMatrices
using NamedArrays
using LinearAlgebra
using Statistics # mean
using MIToS.Utils
using Format
using JSON3
using Downloads
using Logging
using BioStructures
export # PDBResidues
PDBResidueIdentifier,
Coordinates,
PDBAtom,
PDBResidue,
squared_distance,
distance,
contact,
isresidue,
isatom,
select_residues,
residues,
@residues,
residuesdict,
@residuesdict,
select_atoms,
atoms,
@atoms,
findheavy,
findatoms,
findCB,
selectbestoccupancy,
bestoccupancy,
residuepairsmatrix,
proximitymean,
# AtomsData
covalentradius,
vanderwaalsradius,
check_atoms_for_interactions,
# Interaction
ishydrophobic,
isaromatic,
iscationic,
isanionic,
ishbonddonor,
ishbondacceptor,
hydrogenbond,
vanderwaals,
vanderwaalsclash,
covalent,
disulphide,
aromaticsulphur,
pication,
aromatic,
ionic,
hydrophobic,
# PDBParser
PDBFile,
# MMCIF
MMCIFFile,
# PDBMLParser
PDBML,
downloadpdb,
downloadpdbheader,
getpdbdescription,
# Kabsch
kabsch,
center!,
rmsd,
getCA,
CAmatrix,
coordinatesmatrix,
change_coordinates,
centeredcoordinates,
centeredresidues,
superimpose,
mean_coordinates,
rmsf,
# MIToS.Utils
All,
read_file,
parse_file,
write_file,
print_file,
# Sequences
is_aminoacid,
modelled_sequences,
# AlphaFoldDB
query_alphafolddb,
download_alphafold_structure,
# Imported from BioStructures
MolecularStructure,
# Imported from Base (and exported for docs)
any,
parse,
angle
include("PDBResidues.jl")
include("Sequences.jl")
include("AtomsData.jl")
include("Interaction.jl")
include("PDBParser.jl")
include("MMCIF.jl")
include("PDBMLParser.jl")
include("BioStructures.jl")
include("Kabsch.jl")
include("Plots.jl")
include("AlphaFoldDB.jl")
end