SWISS::DTs(3pm)

πŸ“¦
version 1.80 Β· 2 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble

πŸ’– 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

  • new
  • fromText
  • toText
  • sort

(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