def find_features_by_pattern(self, pattern_str: str, case_sensitive: bool=False, regex: bool=False) -> np.ndarray:
    'Searches for features with taxa that matches `pattern_str`\n\n        Parameters\n        ----------\n        pattern_str\n            Pattern to search for\n        case_sensitive\n            Case sensitive mode\n        regex\n            Use regular expressions\n\n\n        Returns\n        -------\n            class:`~numpy.ndarray` with indices\n        '
    return self.__internal_taxonomy[self.__internal_taxonomy.loc[:, 'lineage'].str.contains(pattern_str, case=case_sensitive, regex=regex)].index.values
Searches for features with taxa that matches `pattern_str`

Parameters
----------
pattern_str
    Pattern to search for
case_sensitive
    Case sensitive mode
regex
    Use regular expressions


Returns
-------
    class:`~numpy.ndarray` with indices
def find_features_by_pattern(self, pattern_str: str, case_sensitive: bool=False, regex: bool=False) -> np.ndarray:
    'Searches for features with taxa that matches `pattern_str`\n\n        Parameters\n        ----------\n        pattern_str\n            Pattern to search for\n        case_sensitive\n            Case sensitive mode\n        regex\n            Use regular expressions\n\n\n        Returns\n        -------\n            class:`~numpy.ndarray` with indices\n        '
    return self.__internal_taxonomy[self.__internal_taxonomy.loc[:, 'lineage'].str.contains(pattern_str, case=case_sensitive, regex=regex)].index.values