pegasusio/unimodal_data.py
def list_keys(self, key_type: str = "matrix") -> List[str]:
        """ Return available keys in metadata, key_type = barcode, feature, matrix, other
        """
        if key_type == "matrix":
            return list(self.matrices)
        elif key_type == "barcode":
            return [
                self.barcode_metadata.index.name
            ] + self.barcode_metadata.columns.tolist()
        elif key_type == "feature":
            return [
                self.feature_metadata.index.name
            ] + self.feature_metadata.columns.tolist()
        elif key_type == "other":
            return list(self.metadata)
        else:
            raise ValueError(f"Unknown type {key_type}!")
 Return available keys in metadata, key_type = barcode, feature, matrix, other
        
Return available keys in metadata, key_type = barcode, feature, matrix, other
Return available keys in metadata key_type = barcode feature matrix other
def list_keys(self, key_type: str = "matrix") -> List[str]:
        if key_type == "matrix":
            return list(self.matrices)
        elif key_type == "barcode":
            return [
                self.barcode_metadata.index.name
            ] + self.barcode_metadata.columns.tolist()
        elif key_type == "feature":
            return [
                self.feature_metadata.index.name
            ] + self.feature_metadata.columns.tolist()
        elif key_type == "other":
            return list(self.metadata)
        else:
            raise ValueError(f"Unknown type {key_type}!")
def list_keys ( self , key_type : str = "matrix" ) -> List [ str ] : if key_type == "matrix" : return list ( self . matrices ) elif key_type == "barcode" : return [ self . barcode_metadata . index . name ] + self . barcode_metadata . columns . tolist ( ) elif key_type == "feature" : return [ self . feature_metadata . index . name ] + self . feature_metadata . columns . tolist ( ) elif key_type == "other" : return list ( self . metadata ) else : raise ValueError ( f"Unknown type {key_type}!" )
Return available keys in metadata, key_type = barcode, feature, matrix, other
Return available keys in metadata key_type = barcode feature matrix other
""" Return available keys in metadata, key_type = barcode, feature, matrix, other
        """
self
key_type
str