Skip to content

Commit

Permalink
Readied for release
Browse files Browse the repository at this point in the history
  • Loading branch information
douweschulte committed Aug 25, 2023
1 parent 1020829 commit 7482944
Show file tree
Hide file tree
Showing 7 changed files with 100 additions and 67 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: 'publish'
on:
push:
branches:
- release

jobs:
publish-tauri:
permissions:
contents: write
strategy:
fail-fast: false
matrix:
platform: [macos-latest, ubuntu-20.04, windows-latest]

runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
- name: setup node
uses: actions/setup-node@v3
with:
node-version: 16
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
- name: install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-20.04'
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
- name: install frontend dependencies
run: yarn install # change this to npm or pnpm depending on which one you use
- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tagName: app-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version
releaseName: 'App v__VERSION__'
releaseBody: 'See the assets to download this version and install.'
releaseDraft: true
prerelease: false
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 Douwe Schulte and contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
47 changes: 13 additions & 34 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,39 +1,18 @@
# Tauri + Vanilla
A simple tool to help you manually discover the depths of your spectra one spectrum at a time. It can load MGF files (only in centroid mode, also do not forget to deconvolute if you have TD data). Once loaded you can select a scan and add you annotation while tweaking the exact settings for generating the annotation. The annotation itself is interactive to help you discover what the spectrum means. Which you can then export as nice images for use in other environments.

This template should help get you started developing with Tauri in vanilla HTML, CSS and Javascript.
## Peptide sequence

## Recommended IDE Setup
It uses the [ProForma](https://github.com/HUPO-PSI/ProForma) specification to specify the sequence, it does not handle every last detail of this specification yet, for details see [rustyms](https://github.com/snijderlab/rustyms). Here are some examples of valid sequences:

- [VS Code](https://code.visualstudio.com/) + [Tauri](https://marketplace.visualstudio.com/items?itemName=tauri-apps.tauri-vscode) + [rust-analyzer](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer)
* `VAEINPSNGGTTFNEKFKGGKATJ` Normal aminoacids
* `EM[L-methionine sulfoxide]EVEES[UNIMOD:21]PEK` Modifications using [unimod](http://www.unimod.org) and [PSI-MOD](https://www.ebi.ac.uk/ols/ontologies/mod)
* `TFNEKF[+15.9949]KGGKATJ` Modifications using raw masses
* `TFNEKF[Formula:O]KGGKATJ` Modifications using elemental formula
* `TFNEKF[Glycan:HexNAc1Hex2]KGGKATJ` Modifications glycan compositions
* `[+16]-TFNEKFKGGKATJ-[Methyl]` Terminal modifications
* `<15N>TFNEKFKGGKATJ` Global isotope modifications (all Nitrogen is 15N)
* `<[S-carboxamidomethyl-L-cysteine]@C>AVYYCSRWGGDGFYAMDYWGQG` Global modifications (all C are carboxamidomethylated)

## Example input
## Installing

EVQLVESGGGLVQPGGSLRLSCAASGFTVSSNYMSWVRQAPGKGLEWVSVIYSGGSTYYADSVKGRFTISRDNSKNTLYLQMNSLRAEDTAVYYCARXXXXXXXXXXXXXXXXXXXX


DLQLVESGGGLVGAKSPPGTLSAAASGFNL
DLQLVESGGGLVGAKSPPGTLSAAASGFNL
EVQLVESGGGLVQPGGSLSGAKYHSGFNL
EVVQLVESGGGLVQPGGSLGVLSCAASGF
DLQLVESGGGLVQPGGSLGVLSCAASGF
DLQLVESGGGLVQPGTPLYWNAASGFNL
DLQLVESGGGLVQPGGSLRLSCAASGF
QVQLVESGGGLVQPGGSLRLSCAASGF
EVQLVESGGGLPVQGGSLRLSCAADGF
EVQLVESGGGLVQPGGSLRLSCAASGF
EVQLVSGEGGLVQPGGSLRLSCAASGF
QVELVESGGGLVQPGGSLRLSCAASGF
TLSADTSKNTAYLQMNSLRAEDTAVY
RFTLSADTSKNTAYLQMNSLRAEDTA
QLVESGGGLVQPGGSLTHVAGAGHSGF
SADTSKNTAYLQMNSLRAEDTAVYY
LMLTDGYTRYADSVKGRFTLSADTS
QLVESGGGLVQPGGSLRLSCAASGF
QLVESGGGLVQPGGSLRLSCQTGF
LVESGGGLVQPNSLRLSCAASGF

## todo
- [ ] Add density plot along the y axis of the spectrum graph to see the density of all errors over the ppm range
- [ ] Add N/C terminal highlighting option (shows all applicable ions in spectra, show all points relative to that side for spectrum-graph)
- [ ] Add N/C, N, or C positioning option for spectrum graph (shows all points relative to that series)
- [ ] Ruisfilter
See [releases](https://github.com/snijderlab/annotator/releases) for the latest release, here you will also find the prebuilt binaries for your architecture.
43 changes: 18 additions & 25 deletions src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[package]
name = "stitch-oxide"
name = "annotator"
version = "0.1.0"
description = "Oxidised stepping stones for a new Stitch"
authors = ["you"]
license = ""
repository = ""
authors = ["Douwe Schulte <[email protected]>"]
license = "MIT"
repository = "https://github.com/snijderlab/annotator"
edition = "2021"
rust-version = "1.57"

Expand All @@ -22,12 +22,12 @@ path = "alignment/src/bin.rs"
tauri-build = { version = "1.2", features = [] }

[dependencies]
itertools = "0.10"
itertools = "0.11"
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
tauri = { version = "1.2", features = ["dialog-open"] }
pdbtbx = "0.10"
rustyms = { path = "../../rustyms" }
rustyms = "0.4.0"
proc_interface = { path = "../src-proc-interface" }

[features]
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ LVESGGGLVQPNSLRLSCAASGF
<input type="text" id="model-precursor-loss" value="" class="col-2"/>
</fieldset>
<label class="wide" for="peptide">Peptide sequence </label>
<textarea class="wide" id="peptide">VAEINPSNGGTTFNEKFKGGKATJ</textarea>
<textarea class="wide" id="peptide"></textarea>
<button id="annotate-button" type="button">Annotate</button>
</div>
<pre id="spectrum-error"></pre>
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/src/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ fn general_stats(output: &mut String, spectrum: &AnnotatedSpectrum, fragments: &
write!(
output,
"<table class='general-stats'>
<tr><td>Precursor Mass</td><td>{precursor}</td></tr>
<tr><td>Precursor Mass (M)</td><td>{precursor}</td></tr>
<tr><td>Fragments found</td><td>{percentage_fragments_found:.2} % ({num_annotated}/{})</td></tr>
<tr><td>Peaks annotated</td><td>{percentage_peaks_annotated:.2} % ({num_annotated}/{})</td></tr>
<tr><td>Intensity annotated</td><td>{percentage_intensity_annotated:.2} %</td></tr>
Expand Down

0 comments on commit 7482944

Please sign in to comment.