Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
tedil committed Jan 7, 2025
1 parent ab7ad8c commit 86fb2d9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/mapper/altseq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,21 +295,21 @@ impl AltSeqBuilder {
| VariantLocation::FivePrimeUtr
| VariantLocation::ThreePrimeUtr => EditType::NotCds,
VariantLocation::WholeGene => match na_edit {
NaEdit::DelRef {..} |
NaEdit::DelRef { .. } |
NaEdit::DelNum { .. } => EditType::WholeGeneDeleted,
NaEdit::Dup { .. } => {
log::warn!("Whole-gene duplication; consequence assumed to not affect protein product");
EditType::NotCds
},
}
NaEdit::InvRef { .. } |
NaEdit::InvNum { .. } => {
log::warn!("Whole-gene inversion; consequence assumed to not affected protein product");
EditType::NotCds
},
NaEdit::RefAlt {.. } => {
}
NaEdit::RefAlt { .. } => {
log::warn!("The whole-gene variant {} is not a clean deletion. Assuming whole gene deletion.", self.var_c);
EditType::WholeGeneDeleted
},
}
_ => panic!("Invalid combination of whole gene variant location and NaEdit {na_edit:?}"),
},
};
Expand Down

0 comments on commit 86fb2d9

Please sign in to comment.