DNA Tools
A lightweight Sublime Text plugin for manipulating DNA sequences directly in the editor.
Details
Installs
- Total 14
- Win 6
- Mac 6
- Linux 2
| Jan 13 | Jan 12 | Jan 11 | Jan 10 | Jan 9 | Jan 8 | Jan 7 | Jan 6 | Jan 5 | Jan 4 | Jan 3 | Jan 2 | Jan 1 | Dec 31 | Dec 30 | Dec 29 | Dec 28 | Dec 27 | Dec 26 | Dec 25 | Dec 24 | Dec 23 | Dec 22 | Dec 21 | Dec 20 | Dec 19 | Dec 18 | Dec 17 | Dec 16 | Dec 15 | Dec 14 | Dec 13 | Dec 12 | Dec 11 | Dec 10 | Dec 9 | Dec 8 | Dec 7 | Dec 6 | Dec 5 | Dec 4 | Dec 3 | Dec 2 | Dec 1 | Nov 30 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 |
| Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
DNA Tools for Sublime Text
A lightweight Sublime Text ¾ plugin for manipulating DNA sequences directly in the editor. Includes support for IUPAC ambiguity codes.
Somehow it seems this doesn't yet exist, and I frequently wish it did. So here we are. If there are more tools I need, I'll add them.
Features
- Reverse Complement: Reverses and complements selected DNA sequences
- Complement Only: Applies IUPAC complement rules without reversing
- Reverse Only: Simply reverses the selected text
Supports both uppercase and lowercase bases, including ambiguous bases like R, Y, W, S, N, etc.
IUPAC Complement Rules
| Base | Complement |
|---|---|
| A | T |
| T | A |
| C | G |
| G | C |
| R | Y |
| Y | R |
| S | S |
| W | W |
| K | M |
| M | K |
| B | V |
| D | H |
| H | D |
| V | B |
| N | N |
Installation
Manual Install
- Open
Preferences → Browse Packages… - Clone this repo into the
User/directory:
git clone https://github.com/donutbrew/sublime-dna-tools.git "DNA Tools"
---
## Usage
Highlight any DNA sequence in your Sublime editor, then:
### Command Palette
Press `Ctrl+Shift+P` / `Cmd+Shift+P` and type:
- `DNA Tools: Reverse Complement`
- `DNA Tools: Complement Only`
- `DNA Tools: Reverse Only`
### Optional Keybindings
To bind to hotkeys, open `Preferences > Key Bindings` and add:
```json
[
{ "keys": ["ctrl+alt+r"], "command": "reverse_complement" },
{ "keys": ["ctrl+alt+c"], "command": "complement_only" },
{ "keys": ["ctrl+alt+e"], "command": "reverse_only" }
]