Skip to content

Commit

Permalink
feat: Add rare amino acid SO term (#658)
Browse files Browse the repository at this point in the history
  • Loading branch information
tedil authored Jan 3, 2025
1 parent 36bd717 commit aee7693
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
3 changes: 2 additions & 1 deletion openapi.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ info:
email: manuel.holtgrewe@bih-charite.de
license:
name: MIT
version: 0.30.0
version: 0.30.1
paths:
/api/v1/genes/transcripts:
get:
Expand Down Expand Up @@ -218,6 +218,7 @@ components:
- conservative_inframe_insertion
- conservative_inframe_deletion
- missense_variant
- rare_amino_acid_variant
- splice_donor_5th_base_variant
- splice_region_variant
- splice_donor_region_variant
Expand Down
9 changes: 8 additions & 1 deletion src/annotate/seqvars/ann.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ pub enum Consequence {
/// SO:missense_variant, VEP:missense_variant
MissenseVariant,

/// "A sequence variant whereby at least one base of a codon encoding a rare amino acid is changed, resulting in a different encoded amino acid."
/// SO:rare_amino_acid_variant
RareAminoAcidVariant,

// Not used by mehari, but by VEP (we're usually more specific)
// /// "A sequence_variant which is predicted to change the protein encoded in the coding sequence."
// /// SO:protein_altering_variant, VEP:missense_variant
Expand Down Expand Up @@ -261,6 +265,8 @@ pub enum Consequence {
// /// "A sequence_variant is a non exact copy of a sequence_feature or genome exhibiting one or more sequence_alteration."
// /// SO:sequence_variant, VEP:sequence_variant
// SequenceVariant,
/// "A transcript variant occurring within an intron."
/// SO:intron_variant, VEP:intron_variant
IntronVariant,

/// "A sequence variant where the structure of the gene is changed."
Expand All @@ -287,7 +293,8 @@ impl From<Consequence> for PutativeImpact {
| DisruptiveInframeDeletion
| ConservativeInframeInsertion
| ConservativeInframeDeletion
| MissenseVariant => PutativeImpact::Moderate,
| MissenseVariant
| RareAminoAcidVariant => PutativeImpact::Moderate,
SpliceDonorFifthBaseVariant
| SpliceRegionVariant
| SpliceDonorRegionVariant
Expand Down
7 changes: 7 additions & 0 deletions src/annotate/seqvars/csq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1089,6 +1089,13 @@ impl ConsequencePredictor {
}
} else {
consequences |= Consequence::MissenseVariant;
// Missense variants that affect selenocysteine are marked
// as rare amino acid variants.
if alternative.contains("U")
|| (loc.start == loc.end) && loc.start.aa == "U"
{
consequences |= Consequence::RareAminoAcidVariant;
}
}
}
ProteinEdit::DelIns { alternative } => {
Expand Down

0 comments on commit aee7693

Please sign in to comment.