skbio.sequence.DNASequence.find_features

DNASequence.find_features(feature_type, min_length=1, allow_gaps=False)[source]

Search the sequence for features

Parameters:

feature_type : str

The type of feature to find

min_length : int, optional

Defaults to 1. Only features at least as long as this will be returned

allow_gaps : bool, optional

Defaults to False. If True, then gaps will not be considered to disrupt a feature

Returns:

generator

Yields tuples of the start of the feature, the end of the feature, and the subsequence that composes the feature