Name

SWISS::Ref.pm

Description

SWISS::Ref represents a single reference of a SWISS-PROT + \s-1TREMBL\s0 entry as specified in the user manual http://www.expasy.org/sprot/userman.html .

Inherits from

SWISS::BaseClass.pm

Attributes

The reference number. The \s-1RP\s0 line(s), unwrapped as a string. Zero or more \s-1RC\s0 lines. Data structure: {Token}[qualifier1, qualifierN]. A hash of arrays. Hash keys are the \s-1RC\s0 tokens, array elements are the qualifiers for that token. References to bibliographic databases. Data structure: {Database}[identifier1, identifierN]. A hash of arrays. Hash keys are the names of bibliographic databases, array elements are the identifiers of the reference for that database. The \s-1RG\s0 line(s), unwrapped as a string. The list of Authors. An object of type SWISS::ListBase. The publication title, unwrapped as a string. The \s-1RL\s0 line. Data structure: String.

Methods

Standard methods

new
fromText
toText

Writing methods

add_MedlineID

Add a \s-1RX\s0 line '\s-1MEDLINE\s0; nnnnnnnn.' to the reference.

add_Author

Add an author to the \s-1RA\s0 line of the reference.

rc_sort

Sort elements of the \s-1RC\s0 line alphabetically.