-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathfastq.sublime-syntax
83 lines (78 loc) · 1.9 KB
/
fastq.sublime-syntax
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
%YAML 1.2
---
# Fastq syntax highlighting file
# Maintainer: bioSyntax.org
# Version: v0.1
name: fastq
file_extensions: [fastq, fq]
scope: source.fastq
# See http://www.sublimetext.com/docs/3/syntax.html
contexts:
main:
# Lines which start with "@" are headers
- match: "^@.*$"
scope: header
push: nt
nt:
# Nucleotide sequence highlighting
- clear_scopes: true
- match: "[Aa]+"
scope: ntA
- match: "[Gg]+"
scope: ntG
- match: "[Cc]+"
scope: ntC
- match: "[Tt]+"
scope: ntT
- match: "[Uu]+"
scope: ntU
- match: '^(?=\+)'
set: commentLine
commentLine:
# Match the comment line "+"
- clear_scopes: true
- meta_scope: comment
- match: "\n"
set: quality
quality:
# Match PHRED-quality and graident-color
- clear_scopes: true
- match: "[\\!\\#\\$\"]"
scope: gradbw0
- match: "[%\\&\\'\\(]"
scope: gradbw1
- match: "[\\)\\*\\+\\,]"
scope: gradbw2
- match: "[\\-\\.\\/0]"
scope: gradbw3
- match: "[1-4]"
scope: gradbw4
- match: "[5-8]"
scope: gradbw5
- match: "[9\\:\\;\\<]"
scope: gradbw6
- match: "[\\=\\>\\?\\@]"
scope: gradbw7
- match: "[ABCD]"
scope: gradbw8
- match: "[EFGHIJ]"
scope: gradbw9
- match: "[K-Z\\[\\\\]"
scope: gradbw10
- match: "[\\]\\^\\_\\`a-f]"
scope: gradbw10
- match: "[g-p]"
scope: gradbw10
- match: "[q-z]"
scope: gradbw10
- match: "[\\{\\|\\}\\~]"
scope: gradbw10
- match: "\n"
set: main
# # Complete Phred Scale
# #!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
# #
# # PHRED Scale - Illumina 1.8 Scale (Implemented)
# # 0.2.......................26...31.......41 [Score]
# # !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKL [ASCII]
# # | | | | | | | | | | | ...