$accession
$accession : array
Class ParseSwissprotManager
$sequence : \Amelaye\BioPHP\Domain\Sequence\Entity\Sequence
$srcForm : \Amelaye\BioPHP\Domain\Sequence\Entity\SrcForm
$gbSequence : \Amelaye\BioPHP\Domain\Sequence\Entity\GbSequence
parseDataFile(array $aFlines) : \Amelaye\BioPHP\Domain\Sequence\Entity\Sequence
Parses a GenBank data file and returns a Seq object containing parsed data.
| array | $aFlines | The lines the script has to parse |
$oSequence
parseLocationBounds(string $sLocation) : array
Parses an INSDC feature location (shared by GenBank and EMBL) into its outer bounds and strand. Strips the complement()/join() wrappers and the "<"/">" fuzzy-boundary markers.
For a join() of several comma-separated segments (a spliced feature), Feature has no room to keep each exon separately, so this returns the lowest start and the highest end across every segment.
| string | $sLocation | The raw location text, e.g. "complement(join(<1..10,50..>60))". |
[$iFrom, $iTo, $sStrand] - $sStrand is "-" when the location was wrapped in complement(...), "+" otherwise.
buildDRField() : mixed
Parses DR lines Format : DR DATA_BANK_IDENTIFIER; PRIMARY_IDENTIFIER; SECONDARY_IDENTIFIER We assume that all three data items are mandatory/present in all DR entries.
( refno => ( (dbname1, pid1, sid1), (dbname2, pid2, sid2), ... ), 1 => ( ... ) ) ( 0 => ( (REBASE, pid1, sid1), (WORPEP, pid2, sid2), ... ), 1 => ( ... ) ) ( rn => ( "rp" => "my rp", "rc" => ("tok1" => "value", ...) ) ) ( 10 => ( "RP" => "my rp", "RC" => ("PLASMID" => "PLA_VAL", ... ) ) ) Example: DR AARHUS/GHENT-2DPAGE; 8006; IEF.
buildRNField(array $aFlines, array $aReferences, array $aAuthors) : mixed
Parses RN lines - This is a paragraph which contains several lines Example : RN [8] RP X-RAY CRYSTALLOGRAPHY (2.6 ANGSTROMS).
RX MEDLINE; 90008932. RA ECK M.J., SPRANG S.R.; RL J. BIOL. CHEM. 264:17595-17605(1989).
| array | $aFlines | |
| array | $aReferences | |
| array | $aAuthors |
buildGNField() : mixed
Parses GN line - GN is always exactly one line.
GNAME1 OR GNAME2 ( (GNAME1, GNAME2) ) GNAME1 AND GNAME2 ( (GNAME1), (GNAME2) ) GNAME1 AND (GNAME2 OR GNAME3) ( (GNAME1), (GNAME2, GNAME3) ) GNAME1 OR (GNAME2 AND GNAME3) NOT POSSIBLE!!! ALGORITHM: