st-speckmol v0.0.6
π Changes (#13)
- π¨ Deprecation notice for
spec_plot
andadd_spec_param
- π Implementation of
speck_plot
andadd_speck_param
- π
st_speckmol.__version__
β‘οΈ for version check - π Functions in
utils.py
, β‘οΈ now moved to__init__.py
βοΈ Installation
pip install st-speckmol
π Upgrade to the newest release
pip install --upgrade st-speckmol
Quick-check β¬οΈ
# Check the st_speckmol version installed
import streamlit as st
from st_speckmol import speck_plot
st.write(st_speckmol.__version__)
π Usage
π§ Download the folder xyz_mol_examples or any .xyz
files from the same folder and run the following code below π³ ,
import streamlit as st
import glob
from st_speckmol import speck_plot
# Example files path
ex_files = glob.glob("xyz_mol_examples/*.xyz")
with st.sidebar:
example_xyz = st.selectbox("Select a molecule",ex_files)
f = open(example_xyz,"r")
example_xyz = f.read()
res = speck_plot(example_xyz)
What's coming in future ?
- π Seamless usage of molecule file from popular pdb format - for example -
.pdb
/.sdt
format . Therefore there won't be any restricted dependencies only on.xyz
format further.