mofaflex.FeatureSet#
- class mofaflex.FeatureSet(features, name, description='')#
Class for storing a single set of features (genes).
This class stores a single set of features (genes) and provides set operations for intersection, union, and difference.
- Parameters:
features (
Collection[str]) – The set of features in the feature set.name (
str) – The name of the feature set.description (
str(default:'')) – A description of the feature set.
Notes
If the feature set is empty, a warning is raised. If the collection of features contains duplicates, a warning is raised.
Attributes table#
A description of the feature set.
Check if the feature set is empty.
The set of features in the feature set.
The name of the feature set.
Methods table#
subset(features)Subset features from a feature set.
Attributes#
Methods#
- subset(features)#
Subset features from a feature set.
- Parameters:
- Return type: