mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-30 20:38:12 +08:00
Remove cell ids from engine
Previously I just removed them from the driver
This commit is contained in:
@@ -32,20 +32,9 @@ class ScanpyEngine(CXGDriver):
|
||||
data_schema = parse_schema(os.path.join(data, schema))
|
||||
return data_schema
|
||||
|
||||
def _set_cell_ids(self):
|
||||
self.data.obs["cxg_cell_id"] = list(range(self.data.obs.shape[0]))
|
||||
self.data.obs["cell_name"] = list(self.data.obs.index)
|
||||
self.data.obs.set_index("cxg_cell_id", inplace=True)
|
||||
|
||||
def cells(self):
|
||||
return list(self.data.obs.index)
|
||||
|
||||
def cellids(self, df=None):
|
||||
if df:
|
||||
return list(df.obs.index)
|
||||
else:
|
||||
return list(self.data.obs.index)
|
||||
|
||||
def genes(self):
|
||||
return self.data.var.index.tolist()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user