Skip to content

Commit

Permalink
Generic error messages for pedigreeDB and assembly metadata entries. #18
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristina Yenyxe Gonzalez Garcia committed Jan 7, 2015
1 parent 50b144c commit 3a95d00
Show file tree
Hide file tree
Showing 2 changed files with 1,093 additions and 889 deletions.
16 changes: 14 additions & 2 deletions cpp/src/bioformats/vcf/vcf_v41.ragel
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,12 @@
fhold; fgoto meta_section_skip;
}

# assembly metadata
action meta_assembly_err {
ErrorPolicy::handle_fileformat_section_error(*this, "Error in assembly metadata");
fhold; fgoto meta_section_skip;
}

# contig metadata
action meta_contig_err {
ErrorPolicy::handle_fileformat_section_error(*this, "Error in contig metadata");
Expand Down Expand Up @@ -290,6 +296,12 @@
fhold; fgoto meta_section_skip;
}

# pedigreeDB metadata
action meta_pedigreedb_err {
ErrorPolicy::handle_fileformat_section_error(*this, "Error in pedigreeDB metadata");
fhold; fgoto meta_section_skip;
}

# SAMPLE metadata
action meta_sample_err {
ErrorPolicy::handle_fileformat_section_error(*this, "Error in SAMPLE metadata");
Expand Down Expand Up @@ -447,11 +459,11 @@
("##FILTER=<" meta_filter ">" ) %(meta_filter_read) $err(meta_filter_err) |
("##FORMAT=<" meta_format ">" ) %(meta_format_read) $err(meta_format_err) |
("##INFO=<" meta_info ">" ) %(meta_info_read) $err(meta_info_err) |
("##assembly=" meta_assembly ) |
("##assembly=" meta_assembly ) $err(meta_assembly_err) |
("##contig=<" meta_contig ">" ) $err(meta_contig_err) |
("##SAMPLE=<" meta_sample ">" ) $err(meta_sample_err) |
("##PEDIGREE=<" meta_pedigree ">" ) $err(meta_pedigree_err) |
("##pedigreeDB=<" meta_pedigreeDB ">" ) |
("##pedigreeDB=<" meta_pedigreeDB ">" ) $err(meta_pedigreedb_err) |
("##" meta_field >token_begin %meta_field_value_end) |
("##" meta_field_value >token_begin %meta_field_value_end)
)
Expand Down
Loading

0 comments on commit 3a95d00

Please sign in to comment.