forked from rusteomics/mzcore
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/snijderlab/rustyms
- Loading branch information
Showing
183 changed files
with
2,411 additions
and
199,088 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Generate databases | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "7 4 1 * *" | ||
push: | ||
branches: ["release", "main"] | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
CARGO_ENCODED_RUSTFLAGS: --cfg=github_action | ||
|
||
jobs: | ||
generate-databases: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Check | ||
run: cargo check | ||
- name: Download and build external databases | ||
run: | | ||
bash ./.github/workflows/scripts/update-all-databases.sh | ||
MESSAGE="$(cat /tmp/MESSAGES)" | ||
echo "MESSAGE=${MESSAGE}" >> "${GITHUB_ENV}" | ||
- name: Create pull request | ||
id: cpr | ||
uses: peter-evans/create-pull-request@v7 | ||
with: | ||
token: ${{ secrets.RUSTEOMICS_MZCORE_PR_TOKEN }} | ||
commit-message: Update external databases and ontologies | ||
committer: GitHub <[email protected]> | ||
author: GitHub <[email protected]> | ||
branch: update-databases | ||
delete-branch: true | ||
title: "Update external databases and ontologies" | ||
body: | | ||
This automated PR updates the binary blobs for external databases | ||
and ontologies. | ||
Below are messages from script execution: | ||
> ${{ env.MESSAGE }} | ||
labels: | | ||
A-rustyms-generate-databases | ||
C-maintenance |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
#!/usr/bin/env bash | ||
|
||
|
||
function help { | ||
echo "Usage: generate-all-databases.sh" | ||
echo "" | ||
echo "Download the required databases and build the " | ||
echo "required binary representations of the ontologies." | ||
echo "" | ||
echo "Options:" | ||
echo " -h, --help Display this help and exit" | ||
exit 1 | ||
} | ||
|
||
|
||
# Download IMGT and process and serialize it to a binary blob. | ||
function make-imgt { | ||
echo "Downloading IMGT..." | ||
mkdir -p rustyms-generate-imgt/data | ||
# IMGT is not very reliable, so sometimes the server is down. | ||
# The || clause here allows the rest of the script to continue | ||
# even if this fails. | ||
curl https://www.imgt.org/download/LIGM-DB/imgt.dat.Z \ | ||
| gunzip -c > rustyms-generate-imgt/data/imgt.dat \ | ||
&& echo "Serializing IMGT ..." \ | ||
&& cargo run --bin rustyms-generate-imgt \ | ||
|| echo "Failed to download IMGT. I did not update it." >> /tmp/MESSAGES | ||
} | ||
|
||
|
||
# Download the relevant ontologies and serialize them to binary blobs. | ||
function make-ontologies { | ||
echo "Downloading databases..." | ||
db_data="rustyms-generate-databases/data" | ||
mkdir -p ${db_data} | ||
curl https://raw.githubusercontent.com/HUPO-PSI/psi-mod-CV/refs/heads/master/PSI-MOD-newstyle.obo \ | ||
> ${db_data}/PSI-MOD-newstyle.obo | ||
curl http://www.unimod.org/obo/unimod.obo > ${db_data}/unimod.obo | ||
curl ftp://ftp.proteininformationresource.org/pir_databases/other_databases/resid/RESIDUES.XML \ | ||
> ${db_data}/RESID-RESIDUES.XML | ||
curl https://raw.githubusercontent.com/HUPO-PSI/mzIdentML/master/cv/XLMOD.obo \ | ||
> ${db_data}/XLMOD.obo | ||
curl -L http://purl.obolibrary.org/obo/gno.obo \ | ||
| sed '/(property_value: GNO:00000(022|023|041|042|101|102) .*$\n)|(def: .*$\n)/d' \ | ||
| gzip -c \ | ||
> ${db_data}/GNOme.obo.gz | ||
curl -L https://glycosmos.org/download/glycosmos_glycans_list.csv \ | ||
| gzip -c > ${db_data}/glycosmos_glycans_list.csv.gz | ||
|
||
|
||
echo "Serializing the other databases..." | ||
cargo run --bin rustyms-generate-databases | ||
} | ||
|
||
|
||
function main { | ||
while [[ $# -gt 0 ]]; do | ||
case "$1" in | ||
-h|--help) | ||
help | ||
;; | ||
*) | ||
echo "Unknown argument: $1" | ||
help | ||
;; | ||
esac | ||
done | ||
|
||
touch /tmp/MESSAGES | ||
|
||
make-imgt | ||
make-ontologies | ||
} | ||
|
||
|
||
main "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
title: rustyms | ||
version: 0.9.0 | ||
abstract: A rust library for parsing Pro Forma peptides and matching them against MS spectra . | ||
authors: | ||
- affiliation: Utrecht University | ||
family-names: Schulte | ||
given-names: Douwe | ||
orcid: https://orcid.org/0000-0003-0594-0993 | ||
- affiliation: VIB-UGent Center for Medical Biotechnology | ||
family-names: Gabriels | ||
given-names: Ralf | ||
orcid: https://orcid.org/0000-0002-1679-1711 | ||
- affiliation: Utrecht University | ||
family-names: Heerdink | ||
given-names: Auke | ||
cff-version: 1.2.0 | ||
identifiers: | ||
- description: Main paper (preprint) | ||
type: doi | ||
value: 10.1101/2025.01.18.633732 | ||
- description: Mass alignment algorithm paper | ||
type: doi | ||
value: 10.1021/acs.jproteome.4c00188 | ||
- description: Mass alignment algorithm paper (preprint) | ||
type: url | ||
value: https://www.biorxiv.org/content/10.1101/2024.02.20.581155v1 | ||
- description: Repository | ||
type: url | ||
value: https://github.com/snijderlab/rustyms | ||
keywords: | ||
- sequencing | ||
- antibody | ||
- mass-spectrometry | ||
- de novo | ||
license: MIT OR Apache-2.0 | ||
message: If you use this software, please cite it using these metadata. | ||
repository-code: https://github.com/snijderlab/rustyms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,3 +33,6 @@ path = "fuzz_targets/peaks.rs" | |
test = false | ||
doc = false | ||
bench = false | ||
|
||
[lints] | ||
workspace = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,3 +20,6 @@ uom = { workspace = true } | |
|
||
[features] | ||
rayon = [] | ||
|
||
[lints] | ||
workspace = true |
Binary file not shown.
Oops, something went wrong.