Mercurial > repos > melissacline > ucsc_cancer_utilities
diff seg2matrix/CGData/GenomicSegment.py @ 31:ab20c0d04f4a
add seg2matrix tool
author | jingchunzhu |
---|---|
date | Fri, 24 Jul 2015 13:10:11 -0700 |
parents | |
children | bf57076e27b9 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/seg2matrix/CGData/GenomicSegment.py Fri Jul 24 13:10:11 2015 -0700 @@ -0,0 +1,32 @@ + +import CGData +import CGData.BaseTable + +class GenomicSegment(CGData.BaseTable.BaseTable): + + __format__ = { + "name" : "genomicSegment", + "type" : "type", + "form" : "table", + "columnOrder" : [ + "id", + "chrom", + "chrom_start", + "chrom_end", + "strand", + "value" + ], + "groupKey" : "id", + "columnDef" : { + "chrom_start" : { "type" : "int" }, + "chrom_end" : { "type" : "int" }, + "value" : { "type" : "float" } + }, + "links" : { + "assembly" : {}, + "dataSubType" : {} + } + } + + def __init__(self): + CGData.BaseTable.BaseTable.__init__(self)