Check for input validity and pass to appropriate function
Arguments
- x
The input to check.
- type
The type of input to check for. Supported types are:
jaspar_id
: JASPAR identifier.motif
: `universalmotif` motif object.encode_id
: ENCODE identifier.
- FUN
The function to pass the input to.
- inverse
Logical indicating whether to return the input if it is invalid for the specified `type`.
- ...
Additional arguments to pass to the `FUN` function.