BlackListFilter#

class biopax-explorer.pattern.processing.BlackListFilter(blacklist)[source]#

Bases: object

A class representing a Black List Filter.

Methods

filter(sequence)

Remove all URIs in the blacklist from the given sequence.

funcf(el)

Function to check if an element is in the blacklist.

Methods Summary

filter(sequence)

Remove all URIs in the blacklist from the given sequence.

funcf(el)

Function to check if an element is in the blacklist.

Methods Documentation

filter(sequence)[source]#

Remove all URIs in the blacklist from the given sequence.

Args:

sequence (list): The input sequence to be filtered.

Returns:

list: The filtered sequence.

funcf(el)[source]#

Function to check if an element is in the blacklist.

Args:

el: The element to check.

Returns:

bool: True if the element is not in the blacklist, False otherwise.