Update README.md
Browse files
README.md
CHANGED
|
@@ -155,13 +155,40 @@ ddataset = CellTOSGDataLoader(
|
|
| 155 |
|
| 156 |
# --- Access outputs ---
|
| 157 |
if args.extract_mode == "inference":
|
| 158 |
-
X
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 165 |
|
| 166 |
all_edge_index = dataset.edge_index # full graph (COO [2, E])
|
| 167 |
internal_edge_index = dataset.internal_edge_index # optional transcript–protein edges
|
|
|
|
| 155 |
|
| 156 |
# --- Access outputs ---
|
| 157 |
if args.extract_mode == "inference":
|
| 158 |
+
# X, Y, and metadata are pandas.DataFrame objects containing all selected samples
|
| 159 |
+
print("X shape:", X.shape)
|
| 160 |
+
print("X first 5 rows x 5 columns:\n", X.iloc[:5, :5])
|
| 161 |
+
|
| 162 |
+
print("Y shape:", Y.shape)
|
| 163 |
+
print("Y first 5 rows:\n", Y.iloc[:5])
|
| 164 |
+
|
| 165 |
+
print("metadata shape:", metadata.shape)
|
| 166 |
+
print("metadata first 5 rows x 5 columns:\n", metadata.iloc[:5, :5])
|
| 167 |
+
else: # args.extract_mode == "train"
|
| 168 |
+
# X, Y, and metadata are dictionaries containing train/test splits
|
| 169 |
+
X_train = X["train"]
|
| 170 |
+
X_test = X["test"]
|
| 171 |
+
|
| 172 |
+
Y_train = Y["train"]
|
| 173 |
+
Y_test = Y["test"]
|
| 174 |
+
|
| 175 |
+
metadata_train = metadata["train"]
|
| 176 |
+
metadata_test = metadata["test"]
|
| 177 |
+
|
| 178 |
+
print("X_train shape:", X_train.shape)
|
| 179 |
+
print("X_train first 5 rows x 5 columns:\n", X_train[:5, :5])
|
| 180 |
+
print("X_test shape:", X_test.shape)
|
| 181 |
+
print("X_test first 5 rows x 5 columns:\n", X_test[:5, :5])
|
| 182 |
+
|
| 183 |
+
print("Y_train shape:", Y_train.shape)
|
| 184 |
+
print("Y_train first 5 values:\n", Y_train[:5])
|
| 185 |
+
print("Y_test shape:", Y_test.shape)
|
| 186 |
+
print("Y_test first 5 values:\n", Y_test[:5])
|
| 187 |
+
|
| 188 |
+
print("metadata_train shape:", metadata_train.shape)
|
| 189 |
+
print("metadata_train first 5 rows x 5 columns:\n", metadata_train.iloc[:5, :5])
|
| 190 |
+
print("metadata_test shape:", metadata_test.shape)
|
| 191 |
+
print("metadata_test first 5 rows x 5 columns:\n", metadata_test.iloc[:5, :5])
|
| 192 |
|
| 193 |
all_edge_index = dataset.edge_index # full graph (COO [2, E])
|
| 194 |
internal_edge_index = dataset.internal_edge_index # optional transcript–protein edges
|