diff --git a/src/parser/impl_validate.rs b/src/parser/impl_validate.rs index f8ad5c5..90a4875 100644 --- a/src/parser/impl_validate.rs +++ b/src/parser/impl_validate.rs @@ -99,22 +99,12 @@ impl Validateable for CdsLocEdit { NaEdit::RefAlt { .. } | NaEdit::DelRef { .. } | NaEdit::Dup { .. } + | NaEdit::Ins { .. } | NaEdit::InvRef { .. } => { // We cannot make assumptions about reference length as we can have positon // offsets. Ok(()) } - NaEdit::Ins { .. } => { - if range.len() != 2 { - Err(anyhow::anyhow!( - "Locus length must be 1 for insertions ({}, {:?})", - &self, - &range - )) - } else { - Ok(()) - } - } NaEdit::DelNum { count } | NaEdit::NumAlt { count, .. } | NaEdit::InvNum { count } => { if range.len() as i32 != *count { Err(anyhow::anyhow!(