annotate seg2matrix/CGData/GenomicSegment.py @ 60:bf57076e27b9 default tip

change genomicSegment input data
author jingchunzhu@gmail.com
date Tue, 27 Oct 2015 16:07:09 -0700
parents ab20c0d04f4a
children
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 "value"
ab20c0d04f4a add seg2matrix tool
jingchunzhu
parents:
diff changeset
17 ],
ab20c0d04f4a add seg2matrix tool
jingchunzhu
parents:
diff changeset
18 "groupKey" : "id",
ab20c0d04f4a add seg2matrix tool
jingchunzhu
parents:
diff changeset
19 "columnDef" : {
ab20c0d04f4a add seg2matrix tool
jingchunzhu
parents:
diff changeset
20 "chrom_start" : { "type" : "int" },
ab20c0d04f4a add seg2matrix tool
jingchunzhu
parents:
diff changeset
21 "chrom_end" : { "type" : "int" },
ab20c0d04f4a add seg2matrix tool
jingchunzhu
parents:
diff changeset
22 "value" : { "type" : "float" }
ab20c0d04f4a add seg2matrix tool
jingchunzhu
parents:
diff changeset
23 },
ab20c0d04f4a add seg2matrix tool
jingchunzhu
parents:
diff changeset
24 "links" : {
ab20c0d04f4a add seg2matrix tool
jingchunzhu
parents:
diff changeset
25 "assembly" : {},
ab20c0d04f4a add seg2matrix tool
jingchunzhu
parents:
diff changeset
26 "dataSubType" : {}
ab20c0d04f4a add seg2matrix tool
jingchunzhu
parents:
diff changeset
27 }
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 def __init__(self):
ab20c0d04f4a add seg2matrix tool
jingchunzhu
parents:
diff changeset
31 CGData.BaseTable.BaseTable.__init__(self)