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

fix: do not report deleted or duplicated reference in hgvs.c notation #199

Closed
wants to merge 2 commits into from
Closed
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
8 changes: 4 additions & 4 deletions src/parser/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ impl Display for NaEdit {
(_, 0) => write!(f, "del{count}ins"),
(_, _) => write!(f, "del{count}ins{alternative}"),
},
NaEdit::DelRef { reference } => write!(f, "del{reference}"),
NaEdit::DelRef { .. } => write!(f, "del"),
NaEdit::DelNum { count } => write!(f, "del{count}"),
NaEdit::Ins { alternative } => write!(f, "ins{alternative}"),
NaEdit::Dup { reference } => write!(f, "dup{reference}"),
NaEdit::Dup { .. } => write!(f, "dup"),
NaEdit::InvRef { reference } => write!(f, "inv{reference}"),
NaEdit::InvNum { count } => write!(f, "inv{count}"),
}
Expand Down Expand Up @@ -782,7 +782,7 @@ mod test {
reference: "T".to_string()
}
),
"delT".to_string()
"del".to_string()
);
}

Expand Down Expand Up @@ -816,7 +816,7 @@ mod test {
reference: "T".to_string()
}
),
"dupT".to_string()
"dup".to_string()
);
}

Expand Down
12 changes: 6 additions & 6 deletions tests/data/parser/gauntlet
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ AC_01234.5:g.1_22A>T
#!unsupported: AC_01234.5:g.123_124[4]
#!unsupported: AC_01234.5:g.123_678conNG_012232.1:g.9456_10011
AC_01234.5:g.5dup
AC_01234.5:g.5dupT
AC_01234.5:g.5dup
AC_01234.5:g.7_8dup
AC_01234.5:g.7_8dup
AC_01234.5:g.7_8dupTG


# complex -- same allele (maybe)
Expand Down Expand Up @@ -88,9 +88,9 @@ AC_01234.5:c.76A>C
AC_01234.5:c.76_77delinsTT
AC_01234.5:c.76_77insT
AC_01234.5:c.76_78del
AC_01234.5:c.76_78delACT
AC_01234.5:c.76_78del
AC_01234.5:c.77_79dup
AC_01234.5:c.77_79dup
AC_01234.5:c.77_79dupCTG
AC_01234.5:c.88+1G>T
AC_01234.5:c.89-2A>C

Expand All @@ -100,9 +100,9 @@ AC_01234.5:c.89-2A>C
#!unsupported: AC_01234.5:g.123_124[4]
#!unsupported: AC_01234.5:g.123_678conNG_012232.1:g.9456_10011
AC_01234.5:g.5dup
AC_01234.5:g.5dupT
AC_01234.5:g.5dup
AC_01234.5:g.7_8dup
AC_01234.5:g.7_8dup
AC_01234.5:g.7_8dupTG



Expand Down
Loading