SWISS::DTs(3pm)
π SWISS::DTs π
okay bestie, so SWISS::DTs is the lil module that represents the DT lines inside a Swiss-Prot + TrEMBL entry β exactly as the user manual says they should be, over at http://www.expasy.org/sprot/userman.html β¨
It's giving very specific, very curated, very "I know my format spec" energy. π
π«Ά Inherits from
SWISS::BaseClass.pm β yeah she's part of the family, no cap π
πΈ Attributes
CREATED_dateβ the creation date, aka her birthday πANN_dateβ last annotation update, the glow-up timestamp πSQ_dateβ last sequence update πCREATED_relβ created for release π¦ANN_relβ last annotation for release β¨SQ_relβ last sequence update for release π§ANN_versionβ version number for entry annotation πSQ_versionβ version number for sequence β
π Methods
Standard methods
newfromTexttoTextsort
(yes bestie, the classics β she's got all of them, periodt π¦)
Writing methods
set_Created ($date, $release)set_AnnotationUpdate ($date, $release[, $version])set_SequenceUpdate ($date, $release[, $version])
these are the ones doing the actual writing, the main character moves π₯
π TRANSITION
ok so plot twist: the format of the DT line changes in early 2004 π from this:
DT 01-JUL-1993 (Rel. 26, Created)
DT 01-JUL-1993 (Rel. 26, Last sequence update)
DT 28-FEB-2003 (Rel. 41, Last annotation update)
to this:
DT 01-JUL-1993, integrated into UniProtKB/Swiss-Prot.
DT 01-JUL-1993, sequence version 36.
DT 28-FEB-2003, entry version 54.
and the good news?? π₯³ this module supports BOTH formats. she's bilingual, she's adaptable, she ate π
So if you wanna convert an entry from the old format to the new one, you literally just do:
$entry->DTs->CREATED_rel("UniProtKB/Swiss-Prot");
$entry->DTs->ANN_version(54);
$entry->DTs->SQ_version(36);
and boom π₯ converted. iconic.
π«Ά little sign-off bestie: this whole thing lives in the perl v5.32.1 era, dated 2021-08-15, filed under SWISS::DTs(3pm) β so yeah, she's been around a minute and she's still slaying ππ
π¦ where this page comes from
- debian bookworm: libswiss-perl 1.80-1 Β· GPL-2.0-or-later
- debian trixie: libswiss-perl 1.80-1 Β· GPL-2.0-or-later
- ubuntu jammy: libswiss-perl 1.80-1 Β· GPL-2.0-or-later
- ubuntu noble: libswiss-perl 1.80-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms