You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current design uses Parsley to define the correct grammar only, which leads to a "syntax error" on some common mistakes.
If we modified the grammar parser to include common mistakes, then manually checked for them, we could give much more informative messages than "syntax error".
For instance, consider an insertion:
NC_000017.11:g.43091687_43091688insGATTACA
Here are some common mistakes I have seen in the wild:
Integer length for insertion
Example: NC_000017.11:g.43091687_43091688ins7
Suggested error: "Insertions require inserted sequence, rather than an integer length"
The current design uses Parsley to define the correct grammar only, which leads to a "syntax error" on some common mistakes.
If we modified the grammar parser to include common mistakes, then manually checked for them, we could give much more informative messages than "syntax error".
For instance, consider an insertion:
NC_000017.11:g.43091687_43091688insGATTACA
Here are some common mistakes I have seen in the wild:
Integer length for insertion
Example: NC_000017.11:g.43091687_43091688ins7
Suggested error: "Insertions require inserted sequence, rather than an integer length"
Missing insertion
Example: NC_000017.11:g.43091687_43091688ins
Suggested error: "Insertions require inserted sequence"
The text was updated successfully, but these errors were encountered: