Skip to content

Commit a3823c3

Browse files
author
ababaian
committed
Initialize Sublime syntax
0 parents  commit a3823c3

17 files changed

+2285
-0
lines changed
3.76 KB
Binary file not shown.

bed.sublime-syntax

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
%YAML 1.2
2+
---
3+
# Bed syntax highlighting file
4+
# Maintainer: bioSyntax.org
5+
# Version: v0.1
6+
name: bed
7+
file_extensions: [bed]
8+
scope: source.bed
9+
10+
11+
contexts:
12+
main:
13+
#Handle UCSC track line
14+
- match: '^track.*'
15+
scope: comment.bed
16+
17+
# Column 1: Reference Sequence Name
18+
- match: '^[\S]*\t'
19+
scope: chr.bed
20+
push: start
21+
22+
# Column 2: Start coordinate
23+
start:
24+
- match: ([0-9|\.]+)\b
25+
scope: chrStart.bed
26+
- match: \t
27+
push: end
28+
- match: $
29+
pop: true
30+
31+
# Column 3: End Coordinate
32+
end:
33+
- match: ([0-9|\.]+)\b
34+
scope: chrEnd.bed
35+
- match: \t
36+
push: name
37+
- match: $
38+
pop: true
39+
40+
# Column 4: Description / Name
41+
name:
42+
- match: '[\S]*'
43+
scope: string.bed
44+
- match: \t
45+
push: score
46+
- match: $
47+
pop: true
48+
49+
# Column 5: Score (0-1000 scale)
50+
score:
51+
- match: \.\b
52+
scope: comment.bed
53+
- match: ([0-9])\b
54+
scope: grad1.bed
55+
- match: ([1-9][0-9])\b
56+
scope: grad1.bed
57+
- match: 1[0-9][0-9]\b
58+
scope: grad2.bed
59+
- match: 2[0-9][0-9]\b
60+
scope: grad3.bed
61+
- match: 3[0-9][0-9]\b
62+
scope: grad4.bed
63+
- match: 4[0-9][0-9]\b
64+
scope: grad5.bed
65+
- match: 5[0-9][0-9]\b
66+
scope: grad6.bed
67+
- match: 6[0-9][0-9]\b
68+
scope: grad7.bed
69+
- match: 7[0-9][0-9]\b
70+
scope: grad8.bed
71+
- match: 8[0-9][0-9]\b
72+
scope: grad9.bed
73+
- match: 9[0-9][0-9]\b
74+
scope: grad10.bed
75+
- match: ([0-9][0-9][0-9][0-9])\b
76+
scope: grad10.bed
77+
- match: \t
78+
push: strand
79+
- match: $
80+
pop: true
81+
82+
# Column 6: Feature Strand
83+
strand:
84+
- match: \+
85+
scope: strandPlus.bed
86+
- match: \-
87+
scope: strandMinus.bed
88+
- match: \.
89+
scope: strandNone.bed
90+
- match: $
91+
pop: true

clustal.sublime-syntax

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
%YAML 1.2
2+
---
3+
# Clustal syntax highlighting file
4+
# Maintainer: bioSyntax.org
5+
# Version: v0.1
6+
name: clustal
7+
# See http://www.sublimetext.com/docs/3/syntax.html
8+
file_extensions: [clustal]
9+
scope: text.clustal
10+
11+
contexts:
12+
main:
13+
# Main Identifier
14+
- match: "^CLUSTAL.*"
15+
scope: comment
16+
17+
# Sequence Identifier
18+
- match: "/[0-9]*-[0-9]*" #Optional sequence range
19+
scope: chrStart
20+
21+
- match: "^[\\w\\.\\-\\_ ]*(?=[/ ])"
22+
scope: string
23+
24+
# match Adenosine
25+
- match: "[Aa]++"
26+
scope: ntA
27+
# match Cytidine
28+
- match: "[Cc]++"
29+
scope: ntC
30+
# match Guanine
31+
- match: "[Gg]++"
32+
scope: ntG
33+
# match Thymidine/Uridine
34+
- match: "[TtUu]++"
35+
scope: ntT
36+
# aNy or unknown (X)
37+
- match: "[NnXx]++"
38+
scope: ntN
39+
# indel
40+
- match: "-"
41+
scope: ntGap

faidx.sublime-syntax

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
%YAML 1.2
2+
---
3+
# Fasta Index (faidx) syntax highlighting file
4+
# Maintainer: bioSyntax.org
5+
# Version: v0.1
6+
name: faidx
7+
# See http://www.sublimetext.com/docs/3/syntax.html
8+
file_extensions: [fai,fai]
9+
scope: source.faidx
10+
11+
# Fasta Index Filetype Description
12+
# NAME Name of this reference sequence
13+
# LENGTH Total length of this reference sequence, in bases
14+
# OFFSET Offset within the FASTA file of this sequence's first base
15+
# LINEBASES The number of bases on each line
16+
# LINEWIDTH The number of bytes in each line, including the newline
17+
18+
contexts:
19+
main:
20+
# COLUMN 1
21+
- match: '^[\S]*\t'
22+
scope: chr.faidx
23+
push: contig.length
24+
25+
# COLUMN 3
26+
- match: '(?<=\t)[\S]*\t'
27+
scope: numeric.faidx
28+
push: genomic.offset
29+
30+
# COLUMN 5
31+
- match: '[\S]*$'
32+
scope: comment.faidx
33+
34+
contig.length:
35+
# COLUMN 2
36+
- match: '[\S]*'
37+
scope: chrStart.faidx
38+
- match: \t
39+
pop: true
40+
41+
genomic.offset:
42+
# COLUMN 4
43+
- match: '[\S]*'
44+
scope: comment.faidx
45+
- match: \t
46+
pop: true

fasta-clustal.sublime-syntax

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
%YAML 1.2
2+
---
3+
# Fasta-Clustal syntax highlighting file
4+
# Maintainer: bioSyntax.org
5+
# Version: v0.1
6+
name: fasta-clustal
7+
# See http://www.sublimetext.com/docs/3/syntax.html
8+
file_extensions: [fastaa,faa]
9+
scope: text.fasta-clustal
10+
11+
12+
contexts:
13+
main:
14+
15+
#positive lookbehind to match a + and a new line to any characters right after it
16+
#pushes it to quality
17+
- match: "^>.*"
18+
scope: string
19+
20+
# match amino acids
21+
# Alanine (ALA)
22+
- match: "[Aa]"
23+
scope: aaA
24+
25+
# Aspartate/Asparagine (ASX)
26+
- match: "[Bb]"
27+
scope: aaB
28+
29+
# Cysteine (CYS)
30+
- match: "[Cc]"
31+
scope: aaC
32+
33+
# Aspartate (ASP)
34+
- match: "[Dd]"
35+
scope: aaD
36+
37+
# Glutamate (GLU)
38+
- match: "[Ee]"
39+
scope: aaE
40+
41+
# Phenylalanine (PHE)
42+
- match: "[Ff]"
43+
scope: aaF
44+
45+
# Glycine (GLY)
46+
- match: "[Gg]"
47+
scope: aaG
48+
49+
# Histidine (HIS)
50+
- match: "[Hh]"
51+
scope: aaH
52+
53+
# Isoleucine (ILE)
54+
- match: "[Ii]"
55+
scope: aaI
56+
57+
# Lysine (LYS)
58+
- match: "[Kk]"
59+
scope: aaK
60+
61+
# Leucine (LEU)
62+
- match: "[Ll]"
63+
scope: aaL
64+
65+
# Methionine (MET)
66+
- match: "[Mm]"
67+
scope: aaM
68+
69+
# Asparagine (ASN)
70+
- match: "[Nn]"
71+
scope: aaN
72+
73+
# Proline (PRO)
74+
- match: "[Pp]"
75+
scope: aaP
76+
77+
# Glutamine (GLN)
78+
- match: "[Qq]"
79+
scope: aaQ
80+
81+
# Arginine (ARG)
82+
- match: "[Rr]"
83+
scope: aaR
84+
85+
# Serine (SER)
86+
- match: "[Ss]"
87+
scope: aaS
88+
89+
# Threonine (THE)
90+
- match: "[Tt]"
91+
scope: aaT
92+
93+
# Valine (VAL)
94+
- match: "[Vv]"
95+
scope: aaV
96+
97+
# Tryptophan (TRP)
98+
- match: "[Ww]"
99+
scope: aaW
100+
101+
# Tyrosine (TYR)
102+
- match: "[Yy]"
103+
scope: aaY
104+
105+
# Glutamate or Glutamine (GLX)
106+
- match: "[Zz]"
107+
scope: aaZ
108+
109+
# any/unknown (X)
110+
- match: "[Xx]"
111+
scope: zappo.X
112+
113+
# translation stop
114+
- match: "\\*"
115+
scope: comment
116+
117+
# indel
118+
- match: "[-]"
119+
scope: comment

0 commit comments

Comments
 (0)