rnalysis.enrichment.RankedSet.filter_biotype_from_ref_table

RankedSet.filter_biotype_from_ref_table(biotype: Union[Literal['protein_coding', 'pseudogene', 'lincRNA', 'miRNA', 'ncRNA', 'piRNA', 'rRNA', 'snoRNA', 'snRNA', 'tRNA'], str, List[str]] = 'protein_coding', ref: Union[str, Path, Literal['predefined']] = 'predefined', opposite: bool = False, inplace: bool = True)

Filters out all features that do not match the indicated biotype/biotypes (for example: ‘protein_coding’, ‘ncRNA’, etc). The data about feature biotypes is drawn from a Biotype Reference Table supplied by the user.

Parameters
  • biotype (string or list of strings) – the biotypes which will not be filtered out.

  • ref – Name of the biotype reference file used to determine biotypes. Default is the path defined by the user in the settings.yaml file.

  • opposite (bool) – If True, the output of the filtering will be the OPPOSITE of the specified (instead of filtering out X, the function will filter out anything BUT X). If False (default), the function will filter as expected.

  • inplace (bool (default=True)) – If True (default), filtering will be applied to the current Filter object. If False, the function will return a new Filter instance and the current instance will not be affected.