Skip to content

Commit 14cb60a

Browse files
author
saurabhinfocusp
committed
andata_version_other updates
1 parent b97553b commit 14cb60a

7 files changed

Lines changed: 58 additions & 856 deletions

File tree

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,5 +374,4 @@ Performs evaluation of best model trained on user-defined metrics on the test se
374374
375375
## Citation
376376
377-
Jogani Saiyam, Anand Santosh Pol, Mayur Prajapati, Amit Samal, Kriti Bhatia, Jayendra Parmar, Urvik Patel, Falak Shah, Nisarg Vyas, and Saurabh Gupta. "scaLR: a low-resource deep neural network-based platform for single cell analysis and biomarker discovery." bioRxiv (2024): 2024-09.
378-
377+
Jogani, S., Pol, A. S., Prajapati, M., Samal, A., Bhatia, K., Parmar, J., ... & Gupta, S. (2025). scaLR: a low-resource deep neural network-based platform for single cell analysis and biomarker discovery. Briefings in Bioinformatics, 26(3), bbaf243.

config/config.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Config file for pipeline run.
22

33
# DEVICE SETUP.
4-
device: 'cuda'
4+
device: 'cpu'
55

66
# EXPERIMENT.
77
experiment:
@@ -16,8 +16,7 @@ data:
1616
num_workers: 1
1717

1818
train_val_test:
19-
full_datapath: '/path/to/anndata.h5ad'
20-
19+
full_datapath: 'data/modified_adata.h5ad'
2120
splitter_config:
2221
name: GroupSplitter
2322
params:
@@ -35,7 +34,7 @@ data:
3534
# params:
3635
# **args
3736

38-
target: Cell_Type
37+
target: cell_type
3938

4039

4140
# FEATURE SELECTION.

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
anndata==0.10.9
1+
anndata>=0.11.2,<0.12
22
isort==5.13.2
33
loky==3.4.1
44
memory-profiler==0.61.0

tutorials/pipeline/config_celltype.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Config file for pipeline run for cell type classification.
22

33
# DEVICE SETUP.
4-
device: 'cuda'
4+
device: 'cpu'
55

66
# EXPERIMENT.
77
experiment:

tutorials/pipeline/config_clinical.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Config file for pipeline run for clinical condition specific biomarker identification.
22

33
# DEVICE SETUP.
4-
device: 'cuda'
4+
device: 'cpu'
55

66
# EXPERIMENT.
77
experiment:
@@ -15,7 +15,7 @@ data:
1515
sample_chunksize: 20000
1616

1717
train_val_test:
18-
full_datapath: 'data/modified_adata.h5ad'
18+
full_datapath: 'data/21ef2ea2-cbed-4b6c-a572-0ddd1d9020bc.h5ad'
1919
num_workers: 2
2020

2121
splitter_config:

tutorials/pipeline/scalr_pipeline.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@
358358
"outputs": [],
359359
"source": [
360360
"#Gene expression values of first 5 cells and 10 genes.\n",
361-
"adata.X[:5,:10].A"
361+
"adata.X[:5,:10]\n"
362362
]
363363
},
364364
{
@@ -385,7 +385,7 @@
385385
"source": [
386386
"# Verifying normalized values in X\n",
387387
"# Getting the sum of gene expression values for the first 10 cells (should be floating-point values).\n",
388-
"adata.X[:10,:].A.sum(axis=1)"
388+
"adata.X[:10,:].sum(axis=1)"
389389
]
390390
},
391391
{
@@ -411,8 +411,8 @@
411411
"outputs": [],
412412
"source": [
413413
"# Getting the maximum and minimum gene expression values for the first 1000 cells.\n",
414-
"max_val = np.max(adata.X[:1000, :].A)\n",
415-
"min_val = np.min(adata.X[:1000, :].A)\n",
414+
"max_val = np.max(adata.X[:1000, :])\n",
415+
"min_val = np.min(adata.X[:1000, :])\n",
416416
"print(f'Max value : {max_val} | Min value : {min_val}')\n",
417417
"# Raising a warning if the values are outside the 0-10 range\n",
418418
"if max_val > 10 or min_val < 0:\n",

tutorials/pipeline/scalr_pipeline_local_run.ipynb

Lines changed: 46 additions & 842 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)