Jaguar Parser¶
jaguar
¶
Parsers for Schrödinger Jaguar input and output files.
Provides JaguarIn for reading Jaguar .in files (including
Hessian data) and JaguarOut for reading Jaguar .out files
(structures, eigenvalues, eigenvectors, and frequencies).
JaguarIn
¶
Bases: File
Retrieve data from Jaguar .in files.
The Hessian is not mass-weighted. Hessian units are assumed to be kJ/(mol·Å²).
Initialize a JaguarIn instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str
|
Path to the Jaguar |
required |
Source code in q2mm/parsers/jaguar.py
get_hessian
¶
Read the Hessian matrix from a Jaguar .in file.
Automatically removes Hessian elements corresponding to dummy atoms. That removal is currently disabled to minimize Schrödinger dependence because current use cases have no dummy or empty atoms, but it should be restored if dummy atoms are used in the future.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
num_atoms
|
int
|
Number of atoms in the system. |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
2-D Hessian matrix of shape
|
Source code in q2mm/parsers/jaguar.py
gen_lines
¶
Generate output lines for the Jaguar .in file.
Since it would be difficult to reproduce all original data, the written version will be missing much of the data in the original. The Schrödinger API may provide a better mechanism for that.
The intent is to include the ability to write out an atomic section with the ESP data that we would want.
Returns:
| Type | Description |
|---|---|
list[str]
|
Generated lines for the |
Source code in q2mm/parsers/jaguar.py
JaguarOut
¶
Bases: File
Retrieve data from Schrödinger Jaguar .out files.
Eigenvalues and eigenvectors are not mass-weighted.
Initialize a JaguarOut instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str
|
Path to the Jaguar |
required |
Source code in q2mm/parsers/jaguar.py
molecules
property
¶
molecules: list[Q2MMMolecule]
Parsed structures as :class:~q2mm.models.molecule.Q2MMMolecule objects.
eigenvalues
property
¶
numpy.ndarray: Eigenvalues derived from force constants and frequencies.
eigenvectors
property
¶
numpy.ndarray: Cartesian eigenvectors with dummy-atom rows removed.
dummy_atom_eigenvector_indices
property
¶
list[int]: Row indices in the eigenvector matrix that correspond to dummy atoms.
import_file
¶
Parse the Jaguar .out file and populate all cached properties.
Reads structures, frequencies, force constants, and eigenvectors from the file. Dummy-atom contributions are removed from the eigenvectors.
Source code in q2mm/parsers/jaguar.py
181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 | |