-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
round restored counts in some affected datasets
- Loading branch information
Showing
7 changed files
with
8 additions
and
6 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
...rs/loaders/d10_1016_j_cell_2020_08_001/homosapiens_blood_2020_na_schulteschrepping_001.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
import anndata | ||
import os | ||
import scipy.sparse | ||
import numpy as np | ||
|
||
|
||
def load(data_dir, sample_fn, **kwargs): | ||
fn = os.path.join(data_dir, sample_fn) | ||
adata = anndata.read_h5ad(fn) | ||
adata.X = np.round((np.expm1(adata.X.A) * adata.obs["nCount_RNA"][:, None] / 10000)) | ||
adata.X = scipy.sparse.csr_matrix(adata.X) | ||
|
||
return adata |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
...ers/loaders/d10_1038_s41588_022_01088_x/homosapiens_x_2022_10x3v3_becker_001_assay_sc.tsv
This file was deleted.
Oops, something went wrong.