Input formats
Currently supported input file formats with different models:
| File type | Surface model | Charges included |
|---|---|---|
| HMO | ✓ | ✓ |
| MSMS | ✓ | |
| OBJ | ✓ | |
| OFF | ✓ | |
| PQR | ✓ (charges only) | |
| STL | ✓ |
HMO
NESSie.Format.readhmo — Function
readhmo(stream::IOStream, ::Type{T}=Float64)Reads a complete surface model from the given HMO file.
Return type
Alias
readhmo(fname::AbstractString, ::Type{T}=Float64)Reads the model using a file name rather than a IOStream object.
MSMS
NESSie.Format.readmsms — Function
readmsms(vertstream::IOStream, facestream::IOStream, ::Type{T}=Float64)Reads a surface model from the given MSMS-generated .face and .vert files.
This file type does not support charge models! Hence, the charge list of the returning Model object is empty and has to be set separately.
Return type
Alias
readmsms(fname::AbstractString, ::Type{T}=Float64)Reads the model using a common file name prefix (fname.{vert,face}) for both files rather than IOStream objects.
OBJ
NESSie.Format.readobj — Function
readobj(fname::AbstractString, ::Type{T}=Float64)Reads a surface model from the given Wavefront OBJ file.
This file type does not support charge models! Hence, the charge list of the returning Model object is empty and has to be set separately.
Specification
Return type
OFF
NESSie.Format.readoff — Function
readoff(stream::IOStream, ::Type{T}=Float64)Reads a surface model from the given OFF file.
This file type does not support charge models! Hence, the charge list of the returning Model object is empty and has to be set separately.
Specification
http://www.geomview.org/docs/html/OFF.html
Return type
Alias
readoff(fname::AbstractString, ::Type{T}=Float64)Reads the model using a file name rather than a IOStream object.
PQR
NESSie.Format.readpqr — Function
readpqr(stream::IOStream, ::Type{T}=Float64)Reads a charge model from the given PQR file.
Specification
https://pdb2pqr.readthedocs.io/en/latest/formats/pqr.html
Return type
Alias
readpqr(fname::AbstractString, ::Type{T}=Float64)Reads the charge model using a file name rather than a IOStream object.
STL
NESSie.Format.readstl — Function
readstl(stream::IOStream, ::Type{T}=Float64)Reads a surface model from the given STL file.
This file type does not support charge models! Hence, the charge list of the returning Model object is empty and has to be set separately.
Specification
https://fabbers.com/tech/STL_Format
Return type
Model{T, Triangle{T}}
Alias
readstl(fname::AbstractString, ::Type{T}=Float64)Reads the model using a file name rather than an IOStream object.