Skip to content

Commit

Permalink
fox loader
Browse files Browse the repository at this point in the history
  • Loading branch information
le-ander committed Nov 10, 2023
1 parent 40336f6 commit 06a97c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ def load(data_dir, sample_fn, **kwargs):
fn_meta = os.path.join(data_dir, sample_fn + "_metadata.tsv.gz")
adata = sc.readwrite.read_10x_mtx(data_dir, prefix=sample_fn + "_")
# Meta data files all look different, give all the same column space:
if sample_fn == "GSE114687_CROPSeq_pseudospace":
tab = pd.read_csv(fn_meta, header=None, index_col=None, sep="\t")
if sample_fn == "GSE114687_CROPseq_pseudospace":
tab = pd.read_csv(os.path.join(data_dir, "GSE114687_CROPSeq_pseudospace_metadata.tsv.gz"), header=None, index_col=None, sep="\t")
tab["location"] = tab.iloc[:, 15].values
adata.obs = tab
elif sample_fn == "GSE114687_HuMEC":
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
dataset_structure:
dataset_index: 1
sample_fns:
- "GSE114687_CROPSeq_pseudospace"
- "GSE114687_CROPseq_pseudospace"
- "GSE114687_HuMEC"
- "GSE114687_pseudospace"
dataset_wise:
Expand Down

0 comments on commit 06a97c8

Please sign in to comment.