Skip to content

SilentGene/sublime-fasta-syntax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sublime-fasta-syntax

Let Sublime Text know better of FastA format.

FastA format is a commonly used text-based format for representing biological sequence data, such as DNA or protein sequences. It consists of a single-line sequence header, which begins with a > character, followed by one or more lines of sequence data. The header typically contains information about the sequence, such as its name or source organism. FastA format is widely supported by bioinformatics software and databases and is often used for tasks such as sequence alignment and database searching.

🤩Install the package using Package Control

If you haven't installed Package Control, install it first...

  1. Press Ctrl+Shift+P (Windows) or Cmd+Shift+P (OS X) to open the Command Palette
  2. Type Install Package Control and press Enter to select it.
  3. Wait for a while for the installation to finish

Then install the FastA package

  1. Press Ctrl+Shift+P (Windows) or Cmd+Shift+P (OS X) to open the Command Palette
  2. Type Install Package and select Package Control: Install Package from the palette
  3. Type fasta to find this package and click it to install

🦾Manual Installation

Tested on Sublime Text 4

Download the syntax file

Download the fasta.sublime-syntax and put it in the Sublime Text user folder:

  • Windows: %APPDATA%\Sublime Text\Packages\User
  • Mac: ~/Library/Application Support/Sublime Text/Packages/User
  • Linux: ~/.config/sublime-text/Packages/User

Applying syntax

The application should automatically recognize files in extensions fa, fasta, faa, fna, ffn, or fas.

If the syntax is not applied automatically accidentally, you can specify the syntax by either:

  • click menu -> View -> Syntax -> FastA
  • click 'plain text' at the bottom right -> FastA

change syntax

Note

This is a Syntax which helps Sublime Text understand the composition of the FastA format, not a Theme or a Color Scheme. The color of the keywords is specified according to the Color Scheme which you can select by menu -> Preferences -> Select Color Scheme...

change color scheme

Samples

A few examples of this syntax working with several built-in color schemes:

  1. Monokai Monokai
  2. Sixteen Sixteen
  3. Mariana Mariana
  4. Celeste Celeste