https://github.com/snijderlab/align-cli
A CLI for pairwise alignment of sequences, using both normal and mass based alignment.
https://github.com/snijderlab/align-cli
alignment mass-spectrometry protein rust
Last synced: 3 months ago
JSON representation
A CLI for pairwise alignment of sequences, using both normal and mass based alignment.
- Host: GitHub
- URL: https://github.com/snijderlab/align-cli
- Owner: snijderlab
- License: apache-2.0
- Created: 2023-05-30T12:06:05.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-06-19T09:42:12.000Z (4 months ago)
- Last Synced: 2025-07-05T23:07:30.808Z (3 months ago)
- Topics: alignment, mass-spectrometry, protein, rust
- Language: Rust
- Homepage:
- Size: 840 KB
- Stars: 13
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
- Citation: CITATION.cff
Awesome Lists containing this project
README
# Align-cli
A tool to help your manual mass spec inspection workflow. With alignments, isobaric sequences, and other mass spec information.
## Installing
### Using winget
On windows use `winget install --id Snijderlab.AlignCli`.
### From binary
1. Pick the correct binary for your machine in the release
2. Place it in a nice location on your machine
3. If you are using a unix-based operating system (linux or mac) do not forget to `chmod +x `
4. Open a terminal and use the tool
5. If you want you can add the location of the binary to your path, this makes it so that you can use it across your whole machine[More elaborate instructions for Windows (installing another program)](https://www.dyingtowrite.com/posts/2021/27_how-to-install-cli-manually-windows/)
### With cargo
1. First install [Rust](https://www.rust-lang.org/tools/install).
2. Install the tool using cargo (part of Rust) `cargo install align-cli`### From source
1. First install [Rust](https://www.rust-lang.org/tools/install).
2. Clone the repository.
3. Build with cargo `cargo build --release`
4. Or, if you want to install `cargo install --path .`.## Quick usage overview
1. Pairwise alignment
- Align two sequences `align `, this shows the best alignment for these two sequences.
- Align a single peptide to a database `align --file `.
- Align a single peptide to the IMGT database `align --imgt`.
- Align a single peptide to the V-J-C domains in the IMGT database `align --domain`.
- Align a single peptide to a specific gene in IMGT database `align --specific-gene `.
- For any of these you can control if the peptides have to allign fully (`--global`), if you want to see the best possible subsequence alignment (`--local`), or a more elaborate mode (see `--help` and `--type`).
2. Get information about a single sequence `align `, this shows many basic properties (like mass) and generates isobaric sequences to this sequence.
- Use `--fixed ` and `--variable ` to fine tune the generated isobaric sequences.
3. Get information about a single modification `align --modification `.
- Use a full name to list its properties eg `--modification Oxidation`
- Use a formula to find all modifications with that formula eg `--modification Formula:O`
- Use a mass to find all modifications with that mass eg `--modification +15.995`
4. List IMGT genes `align --imgt` or `align --specific-gene `.For all additional options and more description use `align --help`.
## Example usage





_Here are the used commands for reference_
```
> align AKTNLSHLGYGMDV AKEGGLHSIGYGMDV
> align AKTNLNHLGY BHJGYGMDV --local --context
> align GAI
> align --modification 23 --tolerance 0.5da
> align -m Oxidation
> align --species human --domain -N 1 -n 70 EVQLVESGGGLVQPGGSLRLSCAASGFNIKDTYIHWVRQAPGKGLEWVARIYPTNGYTRYADSVKGRFTISADTSKNTAYLQMNSLRAEDTAVYYCSRWGGDGFYAMDYWGQGTLVTVSSASTKGPSVFPLAPSSKSTSGGTAALGCLVKDYFPEPVTVSWNSGALTSGVHTFPAVLQSSGLYSLSSVVTVPSSSLGTQTYICNVNHKPSNTKVDKKVEPKSCDKTHTCPPCPAPELLGGPSVFLFPPKPKDTLMISRTPEVTCVVVDVSHEDPEVKFNWYVDGVEVHNAKTKPREEQYNSTYRVVSVLTVLHQDWLNGKEYKCKVSNKALPAPIEKTISKAKGQPREPQVYTLPPSREEMTKNQVSLTCLVKGFYPSDIAVEWESNGQPENNYKTTPPVLDSDGSFFLYSKLTVDKSRWQQGNVFSCSVMHEALHNHYTQKSLSLSPGK
```