Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Commit

Permalink
Doc updates (#18)
Browse files Browse the repository at this point in the history
* refactor docs
  • Loading branch information
zachcp authored Jul 31, 2024
1 parent 3321fa1 commit 7c5382a
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2021"

[dependencies]
clap = { version = "4.5.9", features = ["derive"] }
clap = { version = "4.5.11", features = ["derive"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde-pickle = "1.1"
Expand Down
7 changes: 6 additions & 1 deletion docs/_quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,14 @@ website:
left:
- href: index.qmd
text: Home
- about.qmd
- href: examples.qmd
text: Examples
- href: doc/pseutils/index.html
text: RustDoc
right:
- icon: github
href: https://github.com/zachcp/pseutils
aria-label: GitHub

format:
html:
Expand Down
5 changes: 0 additions & 5 deletions docs/about.qmd

This file was deleted.

29 changes: 29 additions & 0 deletions docs/examples.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
title: "Examples"
format:
html:
page-layout: full
---

PSE utils: Conversion of python session files to Molviewspec.


## Example PSE

This is a simple example PSE that has a protein object and a selection object. The pymol `PSE` is on the left and the resulting molviewspec is on the right.

```sh
pseutils --psefile docs/examples/example.pse --outputdir docs/examples/example
```

:::: {.columns .column-page}

::: {.column width="40%"}
![](./examples/images/example_pse.png)
:::

::: {.column width="60%"}
{{< mol-json ./examples/example/state.mvsj >}}
:::

::::
41 changes: 35 additions & 6 deletions docs/index.qmd
Original file line number Diff line number Diff line change
@@ -1,16 +1,45 @@
---
title: "pseutils"

---


PSE utils: Conversion of python sessionfiles to Molviewspec.
PSEutils: Conversion of python session files to Molviewspec.



## Convert PSE

```sh

# build the binary and test
cargo build --release
./target/release/pseutils --psefile tests/data/example.pse --outputdir binary_test

# outputs a complete directory
> tree binary_test
binary_test
├── index.html
├── molstar.css
├── molstar.js
├── pdb
│   └── 1pdb.pdb
├── pdb_contents.txt
└── state.mvsj

```


## Docs and Links

## Example PSE
PSEUtils:

This is a simple example PSE that has a protein object and a selection object.
- High Level [Rust Docs](./doc/pseutils)
- PSE [Rust Parser](./doc/pseutils/pymolparsing/psedata/index.html)
- MVSJ [Nodes](./doc/pseutils/molviewspec/nodes/index.html)

![](./examples/images/example_pse.png)
Related:

{{< mol-json ./examples/example/state.mvsj >}}
- [Pymol-Open-source](https://github.com/schrodinger/pymol-open-source)
- [mol-view-spec](https://molstar.org/mol-view-spec/)
- [molstar](https://molstar.org)
- [molstar-quarto](https://github.com/jmbuhr/quarto-molstar). Used to embed the MVSJ widgets in the page.
Binary file modified resources/images/pymol_molstar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7c5382a

Please sign in to comment.