Skip to content

Commit

Permalink
Merge pull request #18 from klarman-cell-observatory/yiming
Browse files Browse the repository at this point in the history
clean up
  • Loading branch information
yihming committed Jun 8, 2020
2 parents cf767ec + 7b0be21 commit 18b4276
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pegasusio/multimodal_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import anndata

from pegasusio import UnimodalData, VDJData, CITESeqData, CytoData
from pegasusio import apply_qc_filters
from pegasusio import calc_qc_filters, apply_qc_filters
from .views import INDEX, UnimodalDataView
from .datadict import MultiDataDict
from .vdj_data import VDJDataView
Expand Down Expand Up @@ -122,7 +122,7 @@ def uns(self, uns: dict):
@property
def shape(self) -> Tuple[int, int]:
return self._unidata.shape if self._unidata is not None else None

@shape.setter
def shape(self, _shape: Tuple[int, int]):
assert self._unidata is not None
Expand Down Expand Up @@ -191,7 +191,7 @@ def set_aside(self, params: List[str] = None) -> None:
self._unidata.set_aside()
else:
self._unidata.set_aside(params)

def load_control_list(self, control_csv: str) -> None:
""" Surrogate function for CITESeqData and CytoData """
assert self._unidata is not None and (isinstance(self._unidata, CITESeqData) or isinstance(self._unidata, CytoData))
Expand Down Expand Up @@ -261,7 +261,7 @@ def get_data(self, key: str = None, genome: str = None, modality: str = None, ke
cur_genome = unidata.get_genome()
if ((not negation) and (cur_genome == genome)) or (negation and (cur_genome != genome)):
data_arr.append(unidata)

if len(data_arr) == 0 and not keep_list:
raise ValueError(f"No UnimodalData {'without' if negation else 'with'} genome '{genome}'!")
else:
Expand Down Expand Up @@ -295,7 +295,7 @@ def drop_data(self, key: str) -> UnimodalData:
return self.data.pop(key)


def filter_data(self,
def filter_data(self,
select_singlets: bool = False,
remap_string: str = None,
subset_string: str = None,
Expand Down

0 comments on commit 18b4276

Please sign in to comment.