Beispiel #1
0
 def remove_annotation_intersections(self, ids):
     vs = ViewSet(self.db, self.get_viewset_id())
     info = vs.data["annotation_information"]
     for aid in ids:
         anno = info.get(str(aid))
         if not anno:
             continue
         del vs.data["field_information"]["Annotations"][anno["label"]]
         del vs.data["annotation_information"][aid]
         vs.remove_columns([anno['field']])
     vs.update()
Beispiel #2
0
 def delete_tss_distances(self):
     vs = ViewSet(self.db, self.get_viewset_id())
     fields = vs.data["field_information"].get("TSS").values()
     vs.remove_columns(fields)
     del vs.data["field_information"]["TSS"]
     vs.update()
     new_charts = []
     for chart in self.data["graph_config"]:
         if chart['id'].startswith("_tss"):
             continue
         new_charts.append(chart)
     self.data["graph_config"] = new_charts
     del self.data["find_tss_distances_job_id"]
     del self.data["find_tss_distances_job_status"]
     self.update()