Enhancement: Implement a `filterFunction` in `variantLinkerProcessor.js` to allow for flexible filtering of the results before formatting and outputting them.
Opened this issue · 1 comments
berntpopp commented
Current Behavior
Currently, the filterFunction
in variantLinkerProcessor.js
is set to null
, and there is no mechanism to filter the results based on specific criteria before formatting and outputting them.
Proposed Solution
- Define a Filter Function: Implement a default
filterFunction
that can be customized to filter results based on various criteria. - Command-Line Argument: Add a command-line argument to allow users to specify their own filtering criteria.
- Apply the Filter: Modify the
filterAndFormatResults
function to apply thefilterFunction
to the results before formatting.
Acceptance Criteria
- Implement a default
filterFunction
invariantLinkerProcessor.js
. - Add a command-line argument to allow users to specify custom filtering criteria.
- Ensure the
filterAndFormatResults
function applies thefilterFunction
correctly. - Update the documentation to describe how to use the filtering functionality.
- Add tests to verify the functionality of the
filterFunction
.