Skip to content

Commit 44c266d

Browse files
author
ababaian
committed
sublime 2-shade chr.coordinate. Bed. GTF
1 parent 6eecb49 commit 44c266d

File tree

2 files changed

+31
-7
lines changed

2 files changed

+31
-7
lines changed

bed.sublime-syntax

+15-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,13 @@ contexts:
2121

2222
# Column 2: Start coordinate
2323
start:
24-
- match: ([0-9|\.]+)\b
24+
- match: ([0-9|\.](?=\d{2}\t))
25+
scope: chrStart2.bed
26+
- match: ([0-9|\.](?=\d{5}\t))
27+
scope: chrStart2.bed
28+
- match: ([0-9|\.](?=\d{8}\t))
29+
scope: chrStart2.bed
30+
- match: ([0-9|\.])
2531
scope: chrStart.bed
2632
- match: \t
2733
push: end
@@ -30,8 +36,14 @@ contexts:
3036

3137
# Column 3: End Coordinate
3238
end:
33-
- match: ([0-9|\.]+)\b
34-
scope: chrEnd.bed
39+
- match: ([0-9|\.](?=\d{2}\t))
40+
scope: chrStart2.bed
41+
- match: ([0-9|\.](?=\d{5}\t))
42+
scope: chrStart2.bed
43+
- match: ([0-9|\.](?=\d{8}\t))
44+
scope: chrStart2.bed
45+
- match: ([0-9|\.])
46+
scope: chrStart.bed
3547
- match: \t
3648
push: name
3749
- match: $

gtf.sublime-syntax

+16-4
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,28 @@ contexts:
3939
pop: true
4040

4141
start:
42-
- match: ([0-9|\.]+)\b
43-
scope: chrStart.gtf
42+
- match: ([0-9|\.](?=\d{2}\t))
43+
scope: chrStart2.bed
44+
- match: ([0-9|\.](?=\d{5}\t))
45+
scope: chrStart2.bed
46+
- match: ([0-9|\.](?=\d{8}\t))
47+
scope: chrStart2.bed
48+
- match: ([0-9|\.])
49+
scope: chrStart.bed
4450
- match: \t
4551
push: end
4652
- match: $
4753
pop: true
4854

4955
end:
50-
- match: ([0-9|\.]+)\b
51-
scope: chrEnd.gtf
56+
- match: ([0-9|\.](?=\d{2}\t))
57+
scope: chrStart2.bed
58+
- match: ([0-9|\.](?=\d{5}\t))
59+
scope: chrStart2.bed
60+
- match: ([0-9|\.](?=\d{8}\t))
61+
scope: chrStart2.bed
62+
- match: ([0-9|\.])
63+
scope: chrEnd.bed
5264
- match: \t
5365
push: score
5466
- match: $

0 commit comments

Comments
 (0)