annotate seg2matrix/CGData/GenomicSegment.py @ 58:3e5680fecd7a

accept chr1 and 1
author jingchunzhu
date Tue, 22 Sep 2015 15:16:19 -0700
parents ab20c0d04f4a
children bf57076e27b9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
31
ab20c0d04f4a add seg2matrix tool
jingchunzhu
parents:
diff changeset
1
ab20c0d04f4a add seg2matrix tool
jingchunzhu
parents:
diff changeset
2 import CGData
ab20c0d04f4a add seg2matrix tool
jingchunzhu
parents:
diff changeset
3 import CGData.BaseTable
ab20c0d04f4a add seg2matrix tool
jingchunzhu
parents:
diff changeset
4
ab20c0d04f4a add seg2matrix tool
jingchunzhu
parents:
diff changeset
5 class GenomicSegment(CGData.BaseTable.BaseTable):
ab20c0d04f4a add seg2matrix tool
jingchunzhu
parents:
diff changeset
6
ab20c0d04f4a add seg2matrix tool
jingchunzhu
parents:
diff changeset
7 __format__ = {
ab20c0d04f4a add seg2matrix tool
jingchunzhu
parents:
diff changeset
8 "name" : "genomicSegment",
ab20c0d04f4a add seg2matrix tool
jingchunzhu
parents:
diff changeset
9 "type" : "type",
ab20c0d04f4a add seg2matrix tool
jingchunzhu
parents:
diff changeset
10 "form" : "table",
ab20c0d04f4a add seg2matrix tool
jingchunzhu
parents:
diff changeset
11 "columnOrder" : [
ab20c0d04f4a add seg2matrix tool
jingchunzhu
parents:
diff changeset
12 "id",
ab20c0d04f4a add seg2matrix tool
jingchunzhu
parents:
diff changeset
13 "chrom",
ab20c0d04f4a add seg2matrix tool
jingchunzhu
parents:
diff changeset
14 "chrom_start",
ab20c0d04f4a add seg2matrix tool
jingchunzhu
parents:
diff changeset
15 "chrom_end",
ab20c0d04f4a add seg2matrix tool
jingchunzhu
parents:
diff changeset
16 "strand",
ab20c0d04f4a add seg2matrix tool
jingchunzhu
parents:
diff changeset
17 "value"
ab20c0d04f4a add seg2matrix tool
jingchunzhu
parents:
diff changeset
18 ],
ab20c0d04f4a add seg2matrix tool
jingchunzhu
parents:
diff changeset
19 "groupKey" : "id",
ab20c0d04f4a add seg2matrix tool
jingchunzhu
parents:
diff changeset
20 "columnDef" : {
ab20c0d04f4a add seg2matrix tool
jingchunzhu
parents:
diff changeset
21 "chrom_start" : { "type" : "int" },
ab20c0d04f4a add seg2matrix tool
jingchunzhu
parents:
diff changeset
22 "chrom_end" : { "type" : "int" },
ab20c0d04f4a add seg2matrix tool
jingchunzhu
parents:
diff changeset
23 "value" : { "type" : "float" }
ab20c0d04f4a add seg2matrix tool
jingchunzhu
parents:
diff changeset
24 },
ab20c0d04f4a add seg2matrix tool
jingchunzhu
parents:
diff changeset
25 "links" : {
ab20c0d04f4a add seg2matrix tool
jingchunzhu
parents:
diff changeset
26 "assembly" : {},
ab20c0d04f4a add seg2matrix tool
jingchunzhu
parents:
diff changeset
27 "dataSubType" : {}
ab20c0d04f4a add seg2matrix tool
jingchunzhu
parents:
diff changeset
28 }
ab20c0d04f4a add seg2matrix tool
jingchunzhu
parents:
diff changeset
29 }
ab20c0d04f4a add seg2matrix tool
jingchunzhu
parents:
diff changeset
30
ab20c0d04f4a add seg2matrix tool
jingchunzhu
parents:
diff changeset
31 def __init__(self):
ab20c0d04f4a add seg2matrix tool
jingchunzhu
parents:
diff changeset
32 CGData.BaseTable.BaseTable.__init__(self)