Skip to content

Commit

Permalink
Merge pull request #33 from klarman-cell-observatory/yiming
Browse files Browse the repository at this point in the history
Minor changes to work with Pegasus
  • Loading branch information
yihming committed Jul 20, 2020
2 parents eaf9bb8 + 3718bf8 commit affda64
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pegasusio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
from .qc_utils import calc_qc_filters, apply_qc_filters, DictWithDefault
from .multimodal_data import MultimodalData
from .aggr_data import AggrData, _get_fillna_dict
from .readwrite import infer_file_type, read_input, write_output
from .readwrite import infer_file_type, read_input, write_output, write_scp_file
from .data_aggregation import aggregate_matrices

from importlib_metadata import version, PackageNotFoundError
Expand Down
3 changes: 3 additions & 0 deletions pegasusio/multimodal_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ def list_keys(self, key_type: str = "matrix") -> List[str]:
assert self._unidata is not None
return self._unidata.list_keys(key_type)

def current_matrix(self) -> str:
return self._unidata.current_matrix()

def add_matrix(self, key: str, mat: csr_matrix) -> None:
""" Surrogate function for UnimodalData, add a new matrix
"""
Expand Down

0 comments on commit affda64

Please sign in to comment.