|
201 | 201 | }, |
202 | 202 | { |
203 | 203 | "cell_type": "code", |
204 | | - "execution_count": 5, |
| 204 | + "execution_count": null, |
| 205 | + "metadata": {}, |
| 206 | + "outputs": [], |
| 207 | + "source": [ |
| 208 | + "adata = scvi.data.pbmc_seurat_v4_cite_seq(\n", |
| 209 | + " save_path=save_dir.name,\n", |
| 210 | + " mask_protein_batches=5,\n", |
| 211 | + ")" |
| 212 | + ] |
| 213 | + }, |
| 214 | + { |
| 215 | + "cell_type": "code", |
| 216 | + "execution_count": null, |
205 | 217 | "metadata": { |
206 | 218 | "colab": { |
207 | 219 | "base_uri": "https://localhost:8080/" |
208 | 220 | }, |
209 | | - "execution": { |
210 | | - "iopub.execute_input": "2024-02-12T17:44:05.419836Z", |
211 | | - "iopub.status.busy": "2024-02-12T17:44:05.419692Z", |
212 | | - "iopub.status.idle": "2024-02-12T17:46:05.952898Z", |
213 | | - "shell.execute_reply": "2024-02-12T17:46:05.952435Z" |
214 | | - }, |
215 | 221 | "id": "dqFHL3TugIPi", |
216 | 222 | "outputId": "b1471da0-8e2d-4e69-8479-a43985e7dd75" |
217 | 223 | }, |
218 | 224 | "outputs": [ |
219 | | - { |
220 | | - "name": "stdout", |
221 | | - "output_type": "stream", |
222 | | - "text": [ |
223 | | - "\u001b[34mINFO \u001b[0m Downloading file at \u001b[35m/tmp/tmpkyrakh_v/\u001b[0m\u001b[95mpbmc_seurat_v4.h5ad\u001b[0m \n" |
224 | | - ] |
225 | | - }, |
226 | 225 | { |
227 | 226 | "name": "stdout", |
228 | 227 | "output_type": "stream", |
|
7200 | 7199 | } |
7201 | 7200 | ], |
7202 | 7201 | "source": [ |
7203 | | - "adata = scvi.data.pbmc_seurat_v4_cite_seq(\n", |
7204 | | - " save_path=save_dir.name,\n", |
7205 | | - " mask_protein_batches=5,\n", |
7206 | | - ")\n", |
7207 | 7202 | "adata.layers[\"counts\"] = adata.X.copy()\n", |
7208 | 7203 | "sc.pp.normalize_total(adata, target_sum=1e4)\n", |
7209 | 7204 | "sc.pp.log1p(adata)\n", |
|
8305 | 8300 | }, |
8306 | 8301 | { |
8307 | 8302 | "cell_type": "code", |
8308 | | - "execution_count": 21, |
| 8303 | + "execution_count": null, |
8309 | 8304 | "metadata": { |
8310 | 8305 | "colab": { |
8311 | 8306 | "base_uri": "https://localhost:8080/" |
8312 | 8307 | }, |
8313 | | - "execution": { |
8314 | | - "iopub.execute_input": "2024-02-12T17:50:08.588345Z", |
8315 | | - "iopub.status.busy": "2024-02-12T17:50:08.588175Z", |
8316 | | - "iopub.status.idle": "2024-02-12T17:58:11.125253Z", |
8317 | | - "shell.execute_reply": "2024-02-12T17:58:11.124828Z" |
8318 | | - }, |
8319 | 8308 | "id": "6JFgKTnmWM_D", |
8320 | 8309 | "outputId": "c171ad12-db4e-4137-d24d-ffc9fb7e6733" |
8321 | 8310 | }, |
8322 | 8311 | "outputs": [ |
8323 | | - { |
8324 | | - "name": "stdout", |
8325 | | - "output_type": "stream", |
8326 | | - "text": [ |
8327 | | - "\u001b[34mINFO \u001b[0m Found batches with missing protein expression \n" |
8328 | | - ] |
8329 | | - }, |
8330 | | - { |
8331 | | - "name": "stdout", |
8332 | | - "output_type": "stream", |
8333 | | - "text": [ |
8334 | | - "\u001b[34mINFO \u001b[0m Computing empirical prior initialization for protein background. \n" |
8335 | | - ] |
8336 | | - }, |
8337 | | - { |
8338 | | - "name": "stderr", |
8339 | | - "output_type": "stream", |
8340 | | - "text": [ |
8341 | | - "<frozen abc>:119: FutureWarning: SparseDataset is deprecated and will be removed in late 2024. It has been replaced by the public classes CSRDataset and CSCDataset.\n", |
8342 | | - "\n", |
8343 | | - "For instance checks, use `isinstance(X, (anndata.experimental.CSRDataset, anndata.experimental.CSCDataset))` instead.\n", |
8344 | | - "\n", |
8345 | | - "For creation, use `anndata.experimental.sparse_dataset(X)` instead.\n", |
8346 | | - "\n", |
8347 | | - "<frozen abc>:119: FutureWarning: SparseDataset is deprecated and will be removed in late 2024. It has been replaced by the public classes CSRDataset and CSCDataset.\n", |
8348 | | - "\n", |
8349 | | - "For instance checks, use `isinstance(X, (anndata.experimental.CSRDataset, anndata.experimental.CSCDataset))` instead.\n", |
8350 | | - "\n", |
8351 | | - "For creation, use `anndata.experimental.sparse_dataset(X)` instead.\n", |
8352 | | - "\n", |
8353 | | - "/env/lib/python3.11/site-packages/scvi/model/base/_utils.py:126: UserWarning: Some proteins have all 0 counts in some batches. These proteins will be treated as missing measurements; however, this can occur due to experimental design/biology. Reinitialize the model with `override_missing_proteins=True`,to override this behavior.\n", |
8354 | | - " model = cls(adata, **non_kwargs, **kwargs)\n" |
8355 | | - ] |
8356 | | - }, |
8357 | | - { |
8358 | | - "name": "stderr", |
8359 | | - "output_type": "stream", |
8360 | | - "text": [ |
8361 | | - "GPU available: True (cuda), used: True\n" |
8362 | | - ] |
8363 | | - }, |
8364 | | - { |
8365 | | - "name": "stderr", |
8366 | | - "output_type": "stream", |
8367 | | - "text": [ |
8368 | | - "TPU available: False, using: 0 TPU cores\n" |
8369 | | - ] |
8370 | | - }, |
8371 | 8312 | { |
8372 | 8313 | "name": "stderr", |
8373 | 8314 | "output_type": "stream", |
|
12415 | 12356 | "name": "python", |
12416 | 12357 | "nbconvert_exporter": "python", |
12417 | 12358 | "pygments_lexer": "ipython3", |
12418 | | - "version": "3.12.8" |
| 12359 | + "version": "3.12.7" |
12419 | 12360 | }, |
12420 | 12361 | "toc": { |
12421 | 12362 | "base_numbering": 1, |
|
0 commit comments