Use this app to generate interactive visualizations like these for atomic structures and their properties.
- interactive scatter plots via bokeh server
- interactive structure visualization via jsmol
- simple input: provide CIF/XYZ files with structures and CSV file with their properties
- simple deployment on materialscloud.org through Docker containers
- driven by database backend:
git clone https://github.com/materialscloud-org/structure-property-visualizer.git
cd structure-property-visualizer
pip install -e . # install python dependencies
./prepare.sh # download test data (run only once)
bokeh serve --show figure detail select-figure # run app
- a set of structures in
data/structures- Allowed file extensions:
cif,xyz
- Allowed file extensions:
- a CSV file
data/properties.csvwith their properties- has a column
namewhose value<name>links each row to a file instructures/<name>.<extension>.
- has a column
- adapt
import_db.pyaccordingly and run it to create the database
The plots can be configured using a few YAML files in figure/static:
columns.yml: defines metadata for columns of CSV filefilters.yml: defines filters available in plotpresets.yml: defines presets for axis + filter settings
pip install -e .
./prepare.sh
docker-compose build
docker-compose up
# open http://localhost:3245/cofs/select-figure