.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). .\" Fear. Run. Save yourself. No user-serviceable parts. . \" fudge factors for nroff and troff .if n \{\ . ds #H 0 . ds #V .8m . ds #F .3m . ds #[ \f1 . ds #] \fP .\} .if t \{\ . ds #H ((1u-(\\\\n(.fu%2u))*.13m) . ds #V .6m . ds #F 0 . ds #[ \& . ds #] \& .\} . \" simple accents for nroff and troff .if n \{\ . ds ' \& . ds ` \& . ds ^ \& . ds , \& . ds ~ ~ . ds / .\} .if t \{\ . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' .\} . \" troff and (daisy-wheel) nroff accents .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' .ds 8 \h'\*(#H'\(*b\h'-\*(#H' .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] .ds ae a\h'-(\w'a'u*4/10)'e .ds Ae A\h'-(\w'A'u*4/10)'E . \" corrections for vroff .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' . \" for low resolution devices (crt and lpr) .if \n(.H>23 .if \n(.V>19 \ \{\ . ds : e . ds 8 ss . ds o a . ds d- d\h'-1'\(ga . ds D- D\h'-1'\(hy . ds th \o'bp' . ds Th \o'LP' . ds ae ae . ds Ae AE .\} .rm #[ #] #H #V #F C .\" ======================================================================== .\" .IX Title "SWISS::Entry 3pm" .TH SWISS::Entry 3pm "2021-08-15" "perl v5.32.1" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "Name" .IX Header "Name" SWISS::Entry .SH "Description" .IX Header "Description" Main module to handle SWISS-PROT entries. One Entry object represents one SWISS-PROT entry and provides an \s-1API\s0 for its modification. .PP The basic concept is the idea of lazy parsing. If an Entry object is created from the entry in flat file format, the text is simply stored in the private text attribute of the entry object. The member objects of the entry are only created if they are dereferenced. .SH "Example" .IX Header "Example" This minimum program reads entries from a file in SWISS-PROT format and prints the primary accession number for each of the entries. .SH "Attributes" .IX Header "Attributes" The following attributes represent member objects. They can be accessed like e.g. \f(CW$entry\fR\->IDs .IP "IDs" 4 .IX Item "IDs" \&\s-1ID\s0 line object .IP "ACs" 4 .IX Item "ACs" .PD 0 .IP "DTs" 4 .IX Item "DTs" .IP "DEs" 4 .IX Item "DEs" .IP "GNs" 4 .IX Item "GNs" .IP "OSs" 4 .IX Item "OSs" .IP "OCs" 4 .IX Item "OCs" .IP "Refs" 4 .IX Item "Refs" .PD The reference block object .IP "CCs" 4 .IX Item "CCs" .PD 0 .IP "KWs" 4 .IX Item "KWs" .IP "DRs" 4 .IX Item "DRs" .IP "FTs" 4 .IX Item "FTs" .IP "Stars" 4 .IX Item "Stars" .PD Object for the annotator's section stored in the ** lines. .IP "SQs" 4 .IX Item "SQs" The sequence object. .SH "Methods" .IX Header "Methods" .IP "new" 4 .IX Item "new" Return a new Entry object .IP "initialize" 4 .IX Item "initialize" Initialise an Entry object and return it. .IP "update [force]" 4 .IX Item "update [force]" Update an entry. The content of the member objects is written back into the private text attribute of the entry if necessary. If \f(CW$force\fR is true, an update of all member objects is forced. .IP "reformat" 4 .IX Item "reformat" Reformat all fields of an entry. .ie n .IP "fromText $text [, $fullParse[, $removeInternalComments]]" 4 .el .IP "fromText \f(CW$text\fR [, \f(CW$fullParse\fR[, \f(CW$removeInternalComments\fR]]" 4 .IX Item "fromText $text [, $fullParse[, $removeInternalComments]]" Create an Entry object from the text \f(CW$text\fR. If \f(CW$fullParse\fR is true, the entry is parsed at creation time. Otherwise the individual line objects are only created if they are dereferenced. If \f(CW$removeInternalComments\fR is true, wild comments and indentation will be removed from the text before the parsing is done. [\s-1NOTE:\s0 wild comments are lines starting with a double asterisk located outside the Stars section, and indented lines are lines starting with spaces. Both are used internally by SWISS-PROT annotators during their work and excluded from internal and external releases.] .IP "toText [$insertInternalComments]" 4 .IX Item "toText [$insertInternalComments]" Return the entry in flat file text format. If internal comments and indentation have been removed as specified in the parameters to \fBfromText()\fR, you may wish to reinsert them in the text output by setting \f(CW$insertInternalComments\fR to true. .IP "toFasta [isoformName]" 4 .IX Item "toFasta [isoformName]" Return the entry in Fasta format (canonical/displayed sequence if no isoform name provided) .IP "isoFormNames [all]" 4 .IX Item "isoFormNames [all]" Return the list of (filtered for not: External|Displayed|Not described|Unknown) isoform names. If all is true: list all isoform names .IP "isoIds [isoformName]" 4 .IX Item "isoIds [isoformName]" Return list of isoform Ids for a particular isoform name (isoIds for canonical/displayed if no isoform name provided) .IP "isoId [isoformName]" 4 .IX Item "isoId [isoformName]" Return primary isoform Id for a particular isoform name (primary isoId for canonical/displayed if no isoform name provided) .IP "isoFormSequence [isoform name]" 4 .IX Item "isoFormSequence [isoform name]" Return the raw sequence for a specified isoform name (raw canonical sequence if no isoform name provided) .IP "equal" 4 .IX Item "equal" Returns True if two entries are equal, False otherwise .PP The following methods are provided for your convenience. They are shortcuts for methods of the individual line objects. .IP "\s-1ID\s0" 4 .IX Item "ID" Returns the primary \s-1ID\s0 of the entry. .IP "\s-1AC\s0" 4 .IX Item "AC" Returns the primary \s-1AC\s0 of the entry. .IP "\s-1SQ\s0" 4 .IX Item "SQ" Returns the sequence of the entry. .IP "\s-1EV\s0" 4 .IX Item "EV" Returns the \s-1EV\s0 (evidence) object of an entry. SWISS-PROT internal method. .SS "Data access methods" .IX Subsection "Data access methods" .IP "text" 4 .IX Item "text" Returns the current text of the entry. \&\fBQuick and dirty!\fR No update of the text is performed before. .IP "database_code" 4 .IX Item "database_code" Is it a SWISS-PROT, \s-1TREMBL\s0 or \s-1TREMBLNEW\s0 entry? database_code tries to find it out. Return values are S for SWISS-PROT, 3 for \s-1TREMBL, Q\s0 for \s-1TREMBLNEW,\s0 ? for unknown. .IP "isFragment" 4 .IX Item "isFragment" Returns true if the \s-1DE\s0 line indicates a fragment, or of the entry contains a \s-1NON_CONS\s0 or \s-1NON_TER\s0 feature. .IP "isCurated" 4 .IX Item "isCurated" Returns 1 if the entry is a curated entry, 0 otherwise. .Sp SWISS-PROT internal use only. .SH "POD ERRORS" .IX Header "POD ERRORS" Hey! \fBThe above document had some coding errors, which are explained below:\fR .IP "Around line 731:" 4 .IX Item "Around line 731:" =over without closing =back