Joe Reda46 downloadsRender amino acid, DNA, and RNA sequences with per-residue coloring and biophysical property calculations.
Biological sequence viewer for Obsidian — render amino acid, DNA, and RNA sequences with per-residue coloring, biophysical property calculations, and pairwise alignment.
aa), DNA (dna), and RNA (rna) code blocks>Amino Acid Schemes:
Nucleotide Schemes:
All color schemes include:
For Amino Acid Sequences:
| Property | Algorithm | Reference |
|---|---|---|
| Molecular Weight | Sum of residue weights + H₂O | Standard amino acid weights |
| Theoretical pI | Bjellqvist bisection method | Bjellqvist et al. 1993 |
| Extinction Coefficient (280nm) | Pace method | Pace et al. 1995 |
| Absorbance 0.1% (1 g/L) | Derived from ext. coeff. and MW | Both reduced and oxidized (disulfide) |
| GRAVY | Mean Kyte-Doolittle hydropathicity | Kyte & Doolittle 1982 |
| Aliphatic Index | Ikai formula | Ikai 1980 |
| Instability Index | DIWV dipeptide weight matrix | Guruprasad et al. 1990 |
| Stability Classification | Stable if II < 40, unstable otherwise | Color-coded visualization |
| Molecular Formula | Atom counts (C, H, N, O, S) | Calculated from composition |
| Amino Acid Composition | Count and percentage per residue | Collapsible table |
For Nucleotide Sequences:
| Property | Description |
|---|---|
| Length | Total nucleotides |
| GC Content | Count and percentage of G+C bases |
| Molecular Weight | Sum of nucleotide weights |
| Complement | Watson-Crick complement |
| Reverse Complement | Reversed complement sequence |
| Melting Temperature (Tm) | Calculated Tm |
| Base Counts | Individual A/T/G/C/U counts |
Two flexible annotation approaches:
Inline annotations — wrap segments with [Name: SEQUENCE]:
```aa
[Signal peptide: MWQHVL]ALVLLLGFHSGQEA[A domain: ANSLLDCAQKFN]
```
Range annotations — define regions below a --- delimiter:
```aa
MWQHVLALVLLLGFHSGQEAANSLLDCAQKFN
---
1-6: Signal peptide
7-22: Linker
23-33: A domain
```
Both can be combined in a single code block. Annotations render as:
Additional annotation features:
A persistent library of named sequence motifs that auto-highlight on rendered sequences:
MAFFT Integration:
mafft --auto for optimal alignment strategyAlignment Rendering (alignment code block):
| identity, : similar, . weak, X mismatch, - gap```aa
MVLSPADKTNVKAAWGKVGAHAGEYGAEALERMFLSFPTTKTYFPHFDLSH
```
```dna
ATGGTGCTGTCTCCTGCCGACAAGACCAACGTCAAGGCCGCCTGGGGTAAG
```
```rna
AUGGUGCUGUCUCCCUGCCGACAAGACCAACGUCAAGGCCGCCUGGGGUAAG
```
jwreda/obsidian-biosequencemain.js, manifest.json, and styles.css from the latest release.obsidian/plugins/biosequence/ in your vaultBioSequence is not in the Obsidian community plugin directory yet. Until it is, use BRAT or manual installation above.
All settings are configurable via Settings → BioSequence:
| Setting | Description | Default |
|---|---|---|
| Default AA color scheme | Color scheme for amino acid sequences | RasMol |
| Default DNA color scheme | Color scheme for DNA sequences | Default |
| Default RNA color scheme | Color scheme for RNA sequences | Default |
| Max residues per line | Maximum residues before wrapping | 60 |
| Show position numbers | Display position gutter | Enabled |
| Font size | Sequence font size (8-24px) | 14px |
| Annotation display mode | Ribbons or badges | Ribbons |
| Assume disulfide bonds | For extinction coefficient calculation | Disabled |
| MAFFT binary path | Path to MAFFT executable | mafft |
| Alignment output directory | Where to save alignment notes | BioSequence/alignments |
| Conservation symbols | Customize alignment symbols | |, :, ., X, - |
| Feature Library | Manage auto-matching motifs | Empty |
The alignment feature requires MAFFT to be installed on your system (desktop only).
macOS (Homebrew):
brew install mafft
Linux (apt):
sudo apt-get install mafft
Windows: Download from MAFFT website and add to PATH.
A new note will be created with the alignment in an alignment code block.
Running an alignment is the only time the plugin works outside your vault, and only on desktop:
mafft by default) as a separate process.Nothing is sent over the network. If you never run the alignment command, neither happens.
git clone https://github.com/jwreda/obsidian-biosequence.git
cd obsidian-biosequence
npm install
npm run dev # Watch mode for development
npm run build # Production build
Create a symlink to your vault for live testing:
ln -s /path/to/obsidian-biosequence /path/to/vault/.obsidian/plugins/biosequence
After running npm run dev, changes will be automatically compiled. Reload Obsidian (Cmd/Ctrl + R) to see updates.
Contributions are welcome! Please feel free to submit issues, feature requests, or pull requests.
MIT License - see LICENSE for details.
Joe Reda
Repository: github.com/jwreda/obsidian-biosequence