-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
53 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/usr/bin/env python | ||
|
||
# | ||
# This file is part of the `networkcommons` Python module | ||
# | ||
# Copyright 2024 | ||
# Heidelberg University Hospital | ||
# | ||
# File author(s): Saez Lab ([email protected]) | ||
# | ||
# Distributed under the GPLv3 license | ||
# See the file `LICENSE` or read a copy at | ||
# https://www.gnu.org/licenses/gpl-3.0.txt | ||
# | ||
|
||
""" | ||
Access to Moon example omics data. | ||
""" | ||
|
||
from __future__ import annotations | ||
|
||
import pandas as pd | ||
|
||
from . import _common | ||
|
||
__all__ = ['moon'] | ||
|
||
|
||
def moon() -> dict[str, pd.DataFrame]: | ||
""" | ||
Example data for Moon. | ||
Returns: | ||
Three data frames: signaling, metabolite and gene activity | ||
measurements. | ||
""" | ||
|
||
return { | ||
table: _common._open( | ||
_common._commons_url('moon', table = table), | ||
df = {'sep': '\t'}, | ||
) | ||
for table in ('sig', 'metab', 'rna') | ||
} |
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