view seg2matrix/CGData/GenomicSegment.py @ 37:e81019e3ac99

Updated synapseGetDataset to look at the filename rather than the (no longer existant) content type field to determine if the data is in zip format
author melissacline
date Mon, 27 Jul 2015 16:29:24 -0700
parents ab20c0d04f4a
children bf57076e27b9
line wrap: on
line source


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)