Skip to content

Commit

Permalink
changed data validation: Now allow also dots and underscores in chrom…
Browse files Browse the repository at this point in the history
…osome names
  • Loading branch information
Stephan Schiffels committed Jul 9, 2018
1 parent a3237d4 commit bf321de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
@@ -1,5 +1,5 @@
# Set this variable to your static gsl libraries
GSLDIR=/usr/lib
GSLDIR=/usr/local/lib
GSL=${GSLDIR}/libgsl.a ${GSLDIR}/libgslcblas.a

release : build/release/msmc2
Expand Down
4 changes: 2 additions & 2 deletions model/data.d
Expand Up @@ -53,8 +53,8 @@ class SegSite_t {
}

void checkDataLine(const char[] line) {
auto r = regex(r"^\w+\s\d+\s\d+\s[ACTG01\?,]+$");
enforce(match(line, r));
auto r = regex(r"^[A-Za-z0-9_.]+\s\d+\s\d+\s[ACTG01\?,]+$");
enforce(match(line, r), text("could not parse line: ", line));
}

unittest {
Expand Down

0 comments on commit bf321de

Please sign in to comment.