Parametrization

This commit is contained in:
Emanuele Bezzi
2021-12-07 19:42:40 -05:00
parent b048bbfd0c
commit efe3bf7a72
10 changed files with 177 additions and 36 deletions
+8 -3
View File
@@ -363,10 +363,15 @@ class DataAdaptor(metaclass=ABCMeta):
print(f"scale {scale}, translate {translate}")
A = embedding * 0.17011142
A = np.column_stack([A[:, 0] / 1921, A[:, 1] / 2000])
# if True: # if visium
# self.data.uns["spatial"]
normalized_layout = A.astype(dtype=np.float32)
# adata.uns["spatial"]['V1_Adult_Mouse_Brain']["scalefactors"]["tissue_hires_scalef"]
# A = embedding * 0.17011142
# A = np.column_stack([A[:, 0] / 1921, A[:, 1] / 2000])
# normalized_layout = A.astype(dtype=np.float32)
return normalized_layout
def layout_to_fbs_matrix(self, fields):