Skip to content

Commit

Permalink
Add "T" or "S" to mod positions, where needed
Browse files Browse the repository at this point in the history
This is for the data from UniProt.

Refs pombase/curation#3748
Refs pombase/pombase-chado#1216
  • Loading branch information
kimrutherford committed Sep 25, 2024
1 parent 277f645 commit b762f88
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/pombase/bio/generic_annotation_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,17 @@ pub fn write_from_uniprot_map(uniprot_data_map: &UniProtDataMap,
let evidence = site.evidence.as_deref().unwrap_or_default();
let reference = site.reference.as_deref().unwrap_or_default();
let termid = &site.termid;
let residue_extension = format!("residue({})", site.range);
let residue_abbrev =
if termid == "MOD:00047" {
"T"
} else {
if termid == "MOD:00046" {
"S"
} else {
""
}
};
let residue_extension = format!("residue({}{})", residue_abbrev, site.range);
write_generic_annotation(&mut writer,
&uniprot_data.gene_uniquename,
"",
Expand Down

0 comments on commit b762f88

Please sign in to comment.