def get_subset(self, rids: Optional[AnyGenericIdentifier]=None, *args, **kwargs: Any) -> 'RepTaxonomy':
    'Get subset of the :class:`.RepTaxonomy`.\n\n        Parameters\n        ----------\n        rids\n            Feature identifiers.\n        args\n            Compatibility\n        kwargs\n            Compatibility\n\n        Returns\n        -------\n            class:`.RepTaxonomy`\n        '
    if (rids is None):
        target_rids = self.xrid
    else:
        target_rids = np.asarray(rids).astype(self.__internal_taxonomy.index.dtype)
    if (not (self.xrid.isin(target_rids).sum() == len(target_rids))):
        raise ValueError('Invalid feature ids are provided.')
    return type(self)(taxonomy=self.__internal_taxonomy.loc[(target_rids, 'lineage')], metadata=self.metadata, name=self.name)
Get subset of the :class:`.RepTaxonomy`.

Parameters
----------
rids
    Feature identifiers.
args
    Compatibility
kwargs
    Compatibility

Returns
-------
    class:`.RepTaxonomy`
def get_subset(self, rids: Optional[AnyGenericIdentifier]=None, *args, **kwargs: Any) -> 'RepTaxonomy':
    'Get subset of the :class:`.RepTaxonomy`.\n\n        Parameters\n        ----------\n        rids\n            Feature identifiers.\n        args\n            Compatibility\n        kwargs\n            Compatibility\n\n        Returns\n        -------\n            class:`.RepTaxonomy`\n        '
    if (rids is None):
        target_rids = self.xrid
    else:
        target_rids = np.asarray(rids).astype(self.__internal_taxonomy.index.dtype)
    if (not (self.xrid.isin(target_rids).sum() == len(target_rids))):
        raise ValueError('Invalid feature ids are provided.')
    return type(self)(taxonomy=self.__internal_taxonomy.loc[(target_rids, 'lineage')], metadata=self.metadata, name=self.name)