Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EVA-3586 - Allow colon in chromosome names #248

Merged
merged 10 commits into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion inc/vcf/error.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ namespace ebi
using BodySectionError::BodySectionError;
ChromosomeBodyError() : ChromosomeBodyError{0} {}
ChromosomeBodyError(size_t line) : ChromosomeBodyError{line,
"Chromosome is not a string without colons or whitespaces, optionally wrapped with angle brackets (<>)"} { }
"Chromosome is not a string without whitespaces, optionally wrapped with angle brackets (<>)"} { }
virtual ~ChromosomeBodyError() override { }
virtual void apply_visitor(ErrorVisitor &visitor) override { visitor.visit(*this); }
};
Expand Down
9 changes: 1 addition & 8 deletions inc/vcf/file_structure.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -330,19 +330,12 @@ namespace ebi
void set_types();

/**
* Checks that chromosome does not contain colons or white-spaces
* Checks that chromosome does not contain white-spaces
*
* @throw ChromosomeBodyError
*/
void check_chromosome() const;

/**
* Checks that chromosome does not contain any colons
*
* @throw ChromosomeBodyError
*/
void check_chromosome_no_colons() const;

/**
* Checks that chromosome does not contain any white-spaces
*
Expand Down
Loading
Loading