SWISS::Stars::EV(3pm)

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

πŸ‘‘ METHODS πŸ‘‘

okay bestie, these are the things you can actually do with this module, let's go πŸ’…

  • new β€” makes you a fresh little EV object, iconic behaviour honestly ✨
  • fromText β€” reads in text and turns it into an EV object πŸ¦‹
  • toText β€” spits your EV object back out as text 🌸
  • sort β€” sorts the evidence, keeps everything tidy, we love a clean list πŸ’–

πŸ’– addEvidence( $evcode, $src, $author [, $date] ) πŸ’–

Title: addEvidence

Usage:

$evidenceTag = $entry->Stars->EV->addEvidence($evcode,
                                              $src,
                                              $author
                                              [, $date])

Function: adds the evidence to the EV block if it does not yet exist β€” or, plot twist, hands you back the correct evidence tag if that evidence is already in there (possibly with a different date, ngl πŸ‘€).

Args:

  • $evcode β€” the evidence code. e.g. ECO:0000269 🧬
  • $src β€” the source. e.g. PubMed:11433298 πŸ“š
  • $author β€” the author (initials). e.g. XXX p.s. For programs this could be '-' πŸ€–
  • $date β€” optional. If present, it must be in standard SWISS-PROT date format. If not present the current date will be used. no pressure πŸ—“οΈ

Returns: The correct evidence tag. periodt πŸŽ€


πŸ¦‹ updateEvidence( $evcode, $src, $author [, $date] ) πŸ¦‹

Title: updateEvidence

Usage:

$evidenceTag = $entry->Stars->EV->updateEvidence($evcode,
                                                 $src,
                                                 $author
                                                 [, $date])

Function: updates the evidence to the EV block to $date, or inserts it if it does not yet exist. either way bestie, it's getting in there πŸ’«

Args:

  • $evcode β€” the evidence code. e.g. ECO:0000269 🧬
  • $src β€” the source. e.g. PubMed:11433298 πŸ“š
  • $author β€” the author (initials). e.g. XXX p.s. For programs this could be '-' πŸ€–
  • $date β€” optional. If present, it must be in standard SWISS-PROT date format. If not present the current date will be used. πŸ—“οΈ

Returns: The correct evidence tag. slay ✨


🌈 NAME 🌈

SWISS::Stars::EV.pm β€” she's the one, the moment, the module πŸ’œ


✨ DESCRIPTION ✨

SWISS/Stars/EV.pm represents the evidence section within an SWISS-PROT + TrEMBL entry. yes, that's the whole job and she does it gorgeously πŸ’…

See http://www3.ebi.ac.uk/~sp/intern/projects/evidenceTags/index.html for the lore πŸ“–

For a usage example, see evTest.pl in the Swissknife package. go peek, it's giving tutorial energy πŸŽ€


🫢 INHERITS FROM 🫢

SWISS::ListBase.pm β€” she got it from her mama, no cap πŸ’–


🌸 ATTRIBUTES 🌸

  • "list" β€” Each element of the list describes one evidence, itself represented as an array. one evidence per element, nested array style, we love structure πŸ”₯

okay so that's the whole page bestie, you ate it up πŸ’… this was SWISS::Stars::EV(3pm) from perl v5.32.1, dated 2021-08-15 β€” thanks for coming to my TED talk, mwah πŸŽ€πŸ’–βœ¨

πŸ“¦ where this page comes from