-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from mvinyard/bug-fixes
Bug fixes
- Loading branch information
Showing
7 changed files
with
43 additions
and
12 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
__module_name__ = "_fetch_data.py" | ||
__doc__ = """Data fetching module. Key module called within torch_adata.AnnDataset.__init__().""" | ||
__author__ = ", ".join(["Michael E. Vinyard"]) | ||
__email__ = ", ".join(["vinyard@g.harvard.edu"]) | ||
|
||
|
||
# -- import packages: -------------------------------------------------------------------- | ||
import torch | ||
import anndata | ||
|
||
|
||
# -- import local dependencies: ---------------------------------------------------------- | ||
from .._core._core_ancilliary._fetch_data import Fetch | ||
|
||
|
||
# -- fetch X from adata: ----------------------------------------------------------------- | ||
def fetch(adata: anndata.AnnData, use_key: str)->torch.Tensor: | ||
|
||
f = Fetch(adata) | ||
return f.X(use_key) | ||
|