Skip to content

Commit 06b44c9

Browse files
committed
fix component
1 parent a2605f0 commit 06b44c9

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

src/datasets/loaders/allen_brain_cell_atlas/config.vsh.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@ argument_groups:
1818
- CTXsp
1919
- HPF
2020
- HY
21-
- Isocortex-1
22-
- Isocortex-2
23-
- Isocortex-3
24-
- Isocortex-4
21+
- Isocortex
2522
- MB
2623
- OLF
2724
- TH

src/datasets/loaders/allen_brain_cell_atlas/script.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,19 +79,19 @@
7979
print("Downloading and reading expression matrices", flush=True)
8080
abca_data_subdir="WMB-10Xv2"
8181
abca_region_files = [
82-
[file, region]
82+
[re.sub(r"/raw$", "", file), region]
8383
for file in abc_cache.list_data_files(abca_data_subdir)
8484
for region in REGIONS
8585
if re.match(f"WMB-10Xv2-{region}[\\-0-9]*/raw", file)
8686
]
8787

8888
adatas = []
89-
for region, abca_data_file in abca_region_files:
89+
for region, file_name in abca_region_files:
9090
try:
91-
print(f"Downloading file {abca_data_file} for region {region}", flush=True)
91+
print(f"Downloading file {file_name} for region {region}", flush=True)
9292
adata_path = abc_cache.get_data_path(
9393
directory=abca_data_subdir,
94-
file_name=abca_data_file
94+
file_name=file_name
9595
)
9696

9797
print(f"Reading file {adata_path}", flush=True)

0 commit comments

Comments
 (0)