Skip to content

Commit

Permalink
Notify errors for FILTER column in a VCF record. #18
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristina Yenyxe Gonzalez Garcia committed Jan 8, 2015
1 parent 218ccf9 commit 33d92af
Show file tree
Hide file tree
Showing 3 changed files with 1,825 additions and 1,744 deletions.
6 changes: 3 additions & 3 deletions cpp/src/bioformats/vcf/vcf_v41.ragel
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@
}

action filter_error {
printf("Line %zu: Error in 'filter' field\n", n_lines);
ErrorPolicy::handle_body_section_error(*this, "Filter is not a single dot or a semicolon-separated list of strings");
fhold; fgoto body_section_skip;
}

Expand Down Expand Up @@ -512,8 +512,8 @@

record_qual = any_number | "." ;

filter_value = (alnum | punct - ";")+ ;
record_filter = "." | (filter_value (";" filter_value)*) ;
filter_value = (alnum | punct - ";")+ - (punct)+ ;
record_filter = (filter_value (";" filter_value)*) | "." ;

info_key = ( (alnum | "_")+ | "." ) - ("AA" | "AC" | "AF" | "AN" | "BQ" | "CIGAR" | "DB" | "DP" | "END" | "H2" | "H3" | "MQ" | "MQ0" | "NS" | "SB" | "SOMATIC" | "VALIDATED" | "1000G") ;
info_value = (print - space)+ ;
Expand Down
Loading

0 comments on commit 33d92af

Please sign in to comment.