Skip to content

Commit

Permalink
Support N allele
Browse files Browse the repository at this point in the history
  • Loading branch information
leexgh committed Oct 6, 2023
1 parent 7a4dc7a commit f3020f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public CachedVariantAnnotationFetcher(ExternalResourceTransformer<VariantAnnotat

@Override
protected Boolean isValidId(String id) {
return !id.contains("N") && !id.contains("-") && !id.contains("undefined") && !id.contains("g.0") && id.contains(":") && id.split(":")[1].matches(".*\\d+.*");
return !id.contains("-") && !id.contains("undefined") && !id.contains("g.0") && id.contains(":") && id.split(":")[1].matches(".*\\d+.*");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ protected Boolean isValidId(String id)
// 17:36002278-36002277:1/A
// 1:206811015-206811016:1/-
return (
!id.contains("N") && !id.contains("undefined") && !id.contains("g.") &&
!id.contains("undefined") && !id.contains("g.") &&
id.contains("-") &&
// should have two :
(id.length() - id.replace(":","").length() == 2) &&
Expand Down

0 comments on commit f3020f2

Please sign in to comment.