Skip to content

Commit

Permalink
data: Moon example data
Browse files Browse the repository at this point in the history
  • Loading branch information
deeenes committed Jun 14, 2024
1 parent a7e7219 commit 4499c6a
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 0 deletions.
1 change: 1 addition & 0 deletions networkcommons/_data/_omics/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@
from ._decryptm_ebi import get_decryptm as _get_decryptm
from ._deseq2 import *
from ._panacea import *
from ._moon import *
44 changes: 44 additions & 0 deletions networkcommons/_data/_omics/_moon.py
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')
}
8 changes: 8 additions & 0 deletions networkcommons/_data/datasets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,11 @@ omics:
name: Test data
description: Small RNA-Seq data for unit tests
path: unit_test/test__{table}data.tsv
moon:
name: MOON
description: Database files for running MOON
path: moon/{table}_input.tsv
cosmos:
name: COSMOS
description: Database files for running COSMOS (MetaPKN)
path: moon/net/meta_network.sif

0 comments on commit 4499c6a

Please sign in to comment.