Continuous measures of shape and symmetry
Project description
CoSymLib
Python library to compute continuous shape and symmetry measures of molecular structures
Online manual: http://cosymlib.readthedocs.io
Main features
- Continuous Shape and Symmetry measures of molecular geometries
- Continuous Symmetry measures of electronic structure of molecules
- Support for common file types including XYZ, coor, pdb & fchk
- Usage through python API or command line tools
Requirements
- Python 2.7/3.4 or higher
- Matplotlib
- Numpy
- PyYaml
- Symgroupy
- Wfnsympy
- Huckelpy
- Blas & Lapack libraries
- Fortran compiler
Examples using command line tools
Shape measure
$ shape cf4.xyz -c 1 -l
----------------------------------------------------------------------
COSYMLIB v0.10.5
Electronic Structure & Symmetry Group
Institut de Quimica Teorica i Computacional (IQTC)
Universitat de Barcelona
----------------------------------------------------------------------
Available reference structures with 4 Vertices:
Label Sym Info
SP-4 D4h Square
T-4 Td Tetrahedron
SS-4 C2v Seesaw
vTBPY-4 C3v Axially vacant trigonal bipyramid
$ shape cf4.xyz -c 1 -m all
----------------------------------------------------------------------
COSYMLIB v0.10.5
Electronic Structure & Symmetry Group
Institut de Quimica Teorica i Computacional (IQTC)
Universitat de Barcelona
----------------------------------------------------------------------
Structure SP-4 T-4 SS-4 vTBPY-4
cf4, 33.333, 0.000, 9.790, 3.573,
----------------------------------------------------------------------
End of calculation
----------------------------------------------------------------------
Geometrical symmetry measure
$ gsym cf4.xyz -l
----------------------------------------------------------------------
COSYMLIB v0.10.6
Electronic Structure & Symmetry Group
Institut de Quimica Teorica i Computacional (IQTC)
Universitat de Barcelona
----------------------------------------------------------------------
Available symmetry groups
E Identity Symmetry
Ci Inversion Symmetry Group
Cs Reflection Symmetry Group
Cn Rotational Symmetry Group (n: rotation order)
Sn Rotation-Reflection Symmetry Group (n: rotation-reflection order)
$ gsym cf4.xyz -m Ci
----------------------------------------------------------------------
COSYMLIB v0.10.6
Electronic Structure & Symmetry Group
Institut de Quimica Teorica i Computacional (IQTC)
Universitat de Barcelona
----------------------------------------------------------------------
Evaluating symmetry operation : Ci
cf4 16.667
----------------------------------------------------------------------
End of calculation
----------------------------------------------------------------------
Wave function symmetry analysis
$ mosym NF3.fchk -m C3 -mo
----------------------------------------------------------------------
COSYMLIB v0.10.6
Electronic Structure & Symmetry Group
Institut de Quimica Teorica i Computacional (IQTC)
Universitat de Barcelona
----------------------------------------------------------------------
Symmetry group : C3
Molecule : NF3
--------------------------------------
Atomic Coordinates (Angstroms)
--------------------------------------
N -0.000022 0.000014 0.483415
F 1.225707 -0.219543 -0.125324
F -0.802975 -0.951706 -0.125331
F -0.422715 1.171239 -0.125335
WaveFunction: Irred. Rep. Decomposition
------------------
A E
------------------
a-wf 1.000 0.000
b-wf 1.000 0.000
WFN 1.000 0.000
Symmetry axis orientation
center: 0.00000036 -0.00000023 0.00244913
axis : 0.00001508 -0.00001685 1.00000000
axis2 : 0.00000000 1.00000000 0.00001685
Molecule : NF3
--------------------------------------
Atomic Coordinates (Angstroms)
--------------------------------------
N -0.000022 0.000014 0.483415
F 1.225707 -0.219543 -0.125324
F -0.802975 -0.951706 -0.125331
F -0.422715 1.171239 -0.125335
Alpha MOs: Irred. Rep. Decomposition
------------------------------------
occup E(eV) A E
------------------------------------
1 1 -708.54 0.994 0.006
2 1 -708.53 0.002 0.998
3 1 -708.53 0.004 0.996
4 1 -424.19 1.000 0.000
5 1 -45.23 1.000 0.000
6 1 -41.57 0.000 1.000
7 1 -41.57 0.000 1.000
8 1 -26.74 1.000 0.000
9 1 -18.48 0.000 1.000
10 1 -18.48 0.000 1.000
11 1 -18.40 1.000 0.000
12 1 -15.18 0.000 1.000
13 1 -15.18 0.000 1.000
14 1 -14.24 1.000 0.000
15 1 -13.54 0.000 1.000
16 1 -13.54 0.000 1.000
17 1 -10.69 1.000 0.000
18 0 12.21 0.000 1.000
19 0 12.21 0.000 1.000
20 0 12.52 1.000 0.000
Beta MOs: Irred. Rep. Decomposition
------------------------------------
occup E(eV) A E
------------------------------------
1 1 -708.54 0.994 0.006
2 1 -708.53 0.002 0.998
3 1 -708.53 0.004 0.996
4 1 -424.19 1.000 0.000
5 1 -45.23 1.000 0.000
6 1 -41.57 0.000 1.000
7 1 -41.57 0.000 1.000
8 1 -26.74 1.000 0.000
9 1 -18.48 0.000 1.000
10 1 -18.48 0.000 1.000
11 1 -18.40 1.000 0.000
12 1 -15.18 0.000 1.000
13 1 -15.18 0.000 1.000
14 1 -14.24 1.000 0.000
15 1 -13.54 0.000 1.000
16 1 -13.54 0.000 1.000
17 1 -10.69 1.000 0.000
18 0 12.21 0.000 1.000
19 0 12.21 0.000 1.000
20 0 12.52 1.000 0.000
----------------------------------------------------------------------
End of calculation
----------------------------------------------------------------------
Example using Python API
from cosymlib import Molecule, Geometry
# Define geometry
geometry = Geometry(positions=[[ 0.0000, 0.0000, 0.0000],
[ 0.5288, 0.1610, 0.9359],
[ 0.2051, 0.8240, -0.6786],
[ 0.3345, -0.9314, -0.4496],
[-1.0685, -0.0537, 0.1921]],
symbols=['C', 'H', 'H', 'H', 'H'])
# Shape measure
shp_measure = geometry.get_shape_measure('T-4', central_atom=1)
# Geometrical symmetry measure
sym_geom_measure = geometry.get_symmetry_measure('C3', central_atom=1)
#Create molecule from geometry (generate electronic structure with Extended Hukel method)
molecule = Molecule(geometry)
# Wave function symmetry measure
wf_sym_measure = molecule.get_wf_symmetry('Td')
# Electronic density measure
dens_sym_measure = molecule.get_dens_symmetry('Td')
Contact info
Abel Carreras
abelcarreras83@gmail.com
Donostia International Physics Center (DIPC)
Pere Alemany
p.alemany@ub.edu
Electronic Structure & Symmetry group
Department of Materials Science and Physical Chemistry
Institut de Química Teòrica i Computacional (IQTC-UB)
University of Barcelona
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cosymlib-0.12.0.tar.gz.
File metadata
- Download URL: cosymlib-0.12.0.tar.gz
- Upload date:
- Size: 78.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df331d324f1c4356c67f935135ac24dad70f7b6d627c443fd8f35834aa564936
|
|
| MD5 |
09afece61eb5e2eb0cfd1a89172fd811
|
|
| BLAKE2b-256 |
93bab87c1b2318164dca9442b2c5d09d2419eec6e2f468b7905d02bd45751c20
|
File details
Details for the file cosymlib-0.12.0-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: cosymlib-0.12.0-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 219.5 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
adc83997ab8291d6ca555aac35ac29ee228223abb21523e5a216dbfe1e0013f5
|
|
| MD5 |
ce64362169f8d3021fe9b85fd007e8d1
|
|
| BLAKE2b-256 |
1fdd4c3b45a5a93c65562a97e696bc21297e48f782a1f112d3756ee4edd293cd
|
File details
Details for the file cosymlib-0.12.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: cosymlib-0.12.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a464eabd5a228609331f5687b136dda9004493686f8c140f33a2685bab564d0
|
|
| MD5 |
7d834bcb7dc3e3a20f9fbd929b10bc57
|
|
| BLAKE2b-256 |
7e4dd041283a131d8fcb20a1ff7b88a8490d983ed4db22f7242edde298e5de0c
|
File details
Details for the file cosymlib-0.12.0-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: cosymlib-0.12.0-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 272.8 kB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0547cad17f31c53d9c000876ee6d8ba7dd1be0d0fbc487d1e82fbb19b9ffbfef
|
|
| MD5 |
d5f1e538de4a8c38610de9eabfecaecf
|
|
| BLAKE2b-256 |
d45cea2d248e85942a4b27adbda8cbee0b4d85246f7fef70f7bae2439448c676
|
File details
Details for the file cosymlib-0.12.0-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: cosymlib-0.12.0-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 219.5 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a33a7e2e82991ea6dbe79611574ab2082ef18c56af14afdf85e68a157715e81
|
|
| MD5 |
d3666ba256b92287167cde338c336f11
|
|
| BLAKE2b-256 |
2a89a0575a9b0822d50436309b78eb57d0fc0e7a08a070aa7317a77eacd996fa
|
File details
Details for the file cosymlib-0.12.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: cosymlib-0.12.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f3e8750a6f591b8eaa0bc67790e4de94395e4dd29e454c548f427f35312e1a0c
|
|
| MD5 |
8e7a6ee04d44e6b916bf86e8ee9648a3
|
|
| BLAKE2b-256 |
da3c44b3bff6a8f3937d8259bca857eb59ad0100e60c0bb3940d7188312905f1
|
File details
Details for the file cosymlib-0.12.0-cp311-cp311-macosx_11_0_arm64.whl.
File metadata
- Download URL: cosymlib-0.12.0-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 209.9 kB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7525c4b85fc1bb6fafafe351076079bcb74fb72325b22ed77d3c63d941af968d
|
|
| MD5 |
734cf0be64f367cf8a6814a4478638fe
|
|
| BLAKE2b-256 |
54b5c2e141eb350c9bf54dbfc574bf241ce19a2258fd1e9896838380ea1d9c56
|
File details
Details for the file cosymlib-0.12.0-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: cosymlib-0.12.0-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 219.5 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
532eb6dcde7179390bc5d9d6696dc6f1711b34abe9e3c83e171582722387b15a
|
|
| MD5 |
8072fcd1a13c5d4eeec2e83ee2ecd1d1
|
|
| BLAKE2b-256 |
d6b6e3b8ffe24bd1d7695f1e6e476a0460d383598ab34a62f6f93b46c95a315d
|
File details
Details for the file cosymlib-0.12.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: cosymlib-0.12.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59011743a05fab53df2b27cfb05a8c7c1a2f4506f6a25938bacb3aa4bed42fb7
|
|
| MD5 |
9bed4bd1ffbd352960836771277774de
|
|
| BLAKE2b-256 |
7b4583ca638a6cb0c3425141b9fb935fc35b39c452d810f8d90fd555121dd81a
|
File details
Details for the file cosymlib-0.12.0-cp310-cp310-macosx_11_0_arm64.whl.
File metadata
- Download URL: cosymlib-0.12.0-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 147.7 kB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6560db6c342f413ffcff75cdacb4163bfcea02cf02257c1e5d3b0db1794bd0fb
|
|
| MD5 |
869471ca3ed0e2b01dc6e098c3d2bd17
|
|
| BLAKE2b-256 |
ac191bc3da1ee22f7acb0cdee80ef8a9e32f41dd61a3946be183b53af28c42c9
|