-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The -c option can be omitted when a VEP subfield is used in filtering…
… expressions Note that this is an experimental feature.
- Loading branch information
Showing
6 changed files
with
331 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* filter.h -- filter expressions. | ||
Copyright (C) 2013-2021 Genome Research Ltd. | ||
Copyright (C) 2013-2023 Genome Research Ltd. | ||
Author: Petr Danecek <[email protected]> | ||
|
@@ -32,6 +32,8 @@ typedef struct _filter_t filter_t; | |
/** | ||
* @hdr: BCF header file | ||
* @str: see the bcftools filter command help for description | ||
* | ||
* Same as filter_parse() but exits on errors | ||
*/ | ||
filter_t *filter_init(bcf_hdr_t *hdr, const char *str); | ||
|
||
|
@@ -61,4 +63,21 @@ const double *filter_get_doubles(filter_t *filter, int *nval, int *nval1); | |
void filter_expression_info(FILE *fp); | ||
int filter_max_unpack(filter_t *filter); | ||
|
||
/** | ||
* Same as filter_init() but may not exit on some type of errors. The caller | ||
* must check if the returned value is not NULL and if the consequent call | ||
* of filter_status() returns FILTER_OK before the filter_pass() can be called. | ||
*/ | ||
filter_t *filter_parse(bcf_hdr_t *hdr, const char *str); | ||
|
||
#define FILTER_OK 0 | ||
#define FILTER_ERR_UNKN_TAGS 1 | ||
#define FILTER_ERR_OTHER 2 | ||
|
||
/** | ||
* Check if filter_parse() was successful | ||
*/ | ||
int filter_status(filter_t *filter); | ||
const char **filter_list_undef_tags(filter_t *filter, int *nundef); | ||
|
||
#endif |
Oops, something went wrong.