def __init__(self, assembly, exp, f, parent, active, tissue): BigWigTrack.__init__(self, assembly, exp, f, parent, active) self.p["color"] = ColorByTissue(tissue) self.p["track"] = "all_" + self.p["track"] self.p["height"] = "maxHeightPixels 32:12:8" self.p["shortLabel"] = Helpers.makeShortLabel(tissue) self.presentation["tissue"] = (tissue, tissue)
def _init(self): p = OrderedDict() p["track"] = self.parent.initials() + Helpers.sanitize(self.exp.encodeID + '_' + self.ccREaccession) p["parent"] = self.parent.param(self.parent.on) p["subGroups"] = Helpers.unrollEquals(self._subgroups()) p["bigDataUrl"] = self._url() p["visibility"] = Helpers.viz("dense", self.active) p["type"] = "bigBed 9" if 0: shortLabel = Helpers.makeShortLabel(self.stateType) if "5group" == self.stateType: shortLabel = Helpers.makeShortLabel("ccRE 5 groups") p["shortLabel"] = shortLabel p["longLabel"] = Helpers.makeLongLabel(self._desc()) else: p["shortLabel"], p["longLabel"] = self._labels() p["itemRgb"] = "On" p["darkerLabels"] = "on" p["metadata"] = Helpers.unrollEquals(self._metadata()) p["view"] = self.exp.encodeID return p
def _init(self): p = OrderedDict() p["track"] = self.parent.initials() + Helpers.sanitize(self.f.expID + '_' + self.f.fileID) p["parent"] = self.parent.param(self.parent.on) p["subGroups"] = Helpers.unrollEquals(self._subgroups()) p["bigDataUrl"] = self._url() p["visibility"] = Helpers.viz("dense", self.active) p["type"] = "bigBed" p["shortLabel"] = Helpers.makeShortLabel(self.exp.assay_term_name, self.exp.tf) p["longLabel"] = Helpers.makeLongLabel(self._desc()) p["itemRgb"] = "On" p["color"] = Helpers.colorize(self.exp) p["darkerLabels"] = "on" p["metadata"] = Helpers.unrollEquals(self._metadata()) p["view"] = self.exp.encodeID return p
def _init(self): p = OrderedDict() p["track"] = self.parent.initials() + Helpers.sanitize(self.f.expID + '_' + self.f.fileID) p["parent"] = self.parent.param(self.active) p["subGroups"] = Helpers.unrollEquals(self._subgroups()) p["bigDataUrl"] = self._url() p["visibility"] = Helpers.viz("full", self.active) p["type"] = "bigWig" p["color"] = Helpers.colorize(self.exp) p["height"] = "maxHeightPixels 64:12:8" p["shortLabel"] = Helpers.makeShortLabel(self.exp.assay_term_name, self.exp.biosample_term_name) p["longLabel"] = Helpers.makeLongLabel(self.exp.assay_term_name + ' ' + self._desc()) p["itemRgb"] = "On" p["darkerLabels"] = "on" p["metadata"] = Helpers.unrollEquals(self._metadata()) p["view"] = self.view return p
def _labels(self): assay = self.stateType.replace("9state-", '') if '_general' == self.exp.ct: if "5group" == self.stateType: shortLabel = ["general 5g ccREs"] longLabel = ["general 5-group ccREs"] else: shortLabel = ["9s general", assay] longLabel = ["general ccREs", "with high", assay, '(9 state)'] else: if "5group" == self.stateType: shortLabel = ["5g", self.exp.ct] longLabel = ["ccREs in", self.exp.ct, '(5 group)'] else: shortLabel = ["9s", assay, self.exp.ct] longLabel = ["ccREs in", self.exp.ct, "with high", assay, '(9 state)'] return Helpers.makeShortLabel(*shortLabel), Helpers.makeLongLabel(*longLabel)