PRF: Protein Research Foundation record
1
Starting code
This is the PHP code used by this example.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | public function parsePrfRecord() { $parser = DatabaseParserFactory::createParser("PRF"); $parser->parseDataFile(file($this->getParameter('kernel.project_dir') . '/public/data/sample.prf')); return $this->render('default/parsePrfRecord.html.twig', [ 'entryCode' => $parser->getEntryCode(), 'entryName' => $parser->getEntryName(), 'source' => $parser->getSource(), 'commonName' => $parser->getCommonName(), 'taxonomy' => $parser->getTaxonomy(), 'journal' => $parser->getJournal(), 'authors' => $parser->getAuthors(), 'recordTitle'=> $parser->getTitle(), 'keywords' => $parser->getKeywords(), 'sequence' => $parser->getSequence(), ] ); } |
2
Result
Result returned by BioPHP for the demonstration data.
Parsed record
| Entry code | 0904306A |
|---|---|
| Entry name | interleukin 2 |
| Source organism | Homo sapiens |
| Common name | man |
| Taxonomy |
|
| Journal | Nature(London), 302(5906),305-310(1983) |
| Authors |
|
| Title | Structure and expression of a cloned cDNA for human interleukin-2. |
| Keywords |
|
| Sequence | MYRMQLLSCIALSLALVTNSAPTSSSTKKTQLQLEHLLLDLQMILNGINNYKNPKLTRMLTFKFYMPKKATELKHLQCLEEELKPLEEVLNLAQSKNFHLRPRDLISNINVIVLELKGSETTFMCEYADETATIVEFLNRWITFCQSIISTLT |
The code above is the one actually executed by this page. Find the other examples in the left-hand column, or the tools in BioTools.