avrabyt / Streamlit-Readme-to-App

Converting Readme file to Streamlit App

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a sample repo for YouTube Tutorial here

Streamlit-Readme-to-App

Converting Readme file to Streamlit App

Dump Info

Stspeckmol

A Streamlit Component for creating Speck molecular structures within Streamlit Web app.

PyPI version Downloads Downloads Website shields.io GitHub last commit GitHub Release Date

Installation

pip install st-speckmol

to upgrade use,

pip install --upgrade st-speckmol

⭐️ Support me to keep this development going ☕️

"Buy Me A Coffee"

Example

Try the app, for different examples.

Streamlit App

Quickstart

import streamlit as st
import glob
from st_speckmol import speck_plot

# Example files path
ex_files = glob.glob("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)

Speclit demo

Video tutorial

See the tutorial video

How to Build PROTEIN VISUALIZATION WEB-APP using PYTHON and STREAMLIT | PART 1


Related library - Stmol

During the development of the related and popular library Stmol, we introduced speck_plot() function for easy usage of both libraries simultaneously. However, the entire StSpeckmol has not yet been merged and extra(read new) functions such as add_speck_param is only available with this library.

# Installation of Stmol
pip install stmol==0.0.9

# Import Speck plot
from stmol import speck_plot

Incase you are using StSpeckmol for scientific purposes for speck visualization, make sure you use Stmol (https://doi.org/10.3389/fmolb.2022.990846) and cite as following,

Nápoles-Duarte JM, Biswas A,Parker MI, Palomares-Baez JP, Chávez-Rojo MA and Rodríguez-Valdez LM (2022), 
Stmol: A component for building interactive molecular visualizations within streamlit web-applications.
Front. Mol. Biosci. 9:990846. doi: 10.3389/fmolb.2022.990846

Note : Meanwhile,ipyspeck in their latest release 0.6.1 has added the stspec module [avrabyt/st-speckmol#1 (comment)], therefore feel free to use whatever convinient, as long as you are interested to have fun with beautiful speck strcutures 🧬 and streamlit 🎈 🎉


References

Speck Online

Speck Python package

Example-Source

Stmol

About

Converting Readme file to Streamlit App


Languages

Language:Python 100.0%