ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

DNA Tools

by donutbrew ALL New

A lightweight Sublime Text plugin for manipulating DNA sequences directly in the editor.

Details

Installs

  • Total 1
  • Win 0
  • Mac 0
  • Linux 1
Aug 5 Aug 4 Aug 3 Aug 2 Aug 1 Jul 31 Jul 30 Jul 29 Jul 28 Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22
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 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 1 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

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

  1. Open Preferences → Browse Packages…
  2. 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" }
]