Feature Selector SeqID Parse Helper

GitHub Link to Code.

Seqid parser helper for feature selection.

This module provides parsing functionality for seqid category selections, which are based on biological sequence IDs (residue.seqid) in the trajectory data.

class mdxplain.feature_selection.helper.feature_selector_seqid_parse_helper.FeatureSelectorSeqidParseHelper

Helper class for seqid category - biological sequence ID based operations.

Provides static methods to parse ‘seqid’ category selections like “123”, “123-140” to identify matching feature indices based on trajectory metadata.

static parse_seqid_category(param_parts: List[str], features_list: List[list]) Tuple[List[int], Set[int]]

Parse ‘seqid’ category and return matching feature indices plus matched residue indices. Uses biological sequence ID from metadata (residue.seqid).

Parameters

param_partsList[str]

List of parameter parts for sequence ID selection

features_listList[list]

List of features from metadata

Returns

Tuple[List[int], Set[int]]

Tuple of (feature_indices, matched_residue_indices)

Raises

ValueError

If the sequence ID specification is invalid