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

DNA Tools

by donutbrew ALL

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

Details

Installs

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

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" }
]