LABEL_WIDTH
LABEL_WIDTH = 12
Width of the label column, the data starting right after it.
Class ParsePrfManager A PRF entry describes a published protein. Its layout is a twelve character label column, a blank label meaning the line continues the one above, and indented sub-keys qualifying the field they follow. This class exposes plain scalars rather than the Sequence/Feature entities of ParseDbAbstractManager. The SOURCE, KEYWORD, CROSSREF and SEQUENCE fields, which the original BioPHP parser declared without ever filling, are read here.
parseDataFile(array $aFlines) : \Amelaye\BioPHP\Domain\Sequence\Entity\Sequence
Parses a PRF data file and populates this manager's fields.
| array | $aFlines | The lines the script has to parse |
$oSequence
separatorFor(string $sField) : string
What joins a field to its continuation line. Keywords are separated by a run of at least two spaces, and the line break itself separates them too : joining those lines with a single space would weld the last keyword of one line to the first of the next.
| string | $sField | The field being accumulated |
parseCrossRefs(string $sData) : void
Cross-references are semicolon separated "DATABASE=IDENTIFIER" pairs. The same database may appear more than once, so they are returned as a list rather than keyed by name.
Example: CROSSREF PIR=ICHU2;PIR=ICGI2
| string | $sData | The CROSSREF line, label stripped |