PRINTS: protein fingerprint 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 | public function parsePrintsRecord() { $parser = DatabaseParserFactory::createParser("PRINTS"); $parser->parseDataFile(file($this->getParameter('kernel.project_dir') . '/public/data/sample.prints')); return $this->render('default/parsePrintsRecord.html.twig', [ 'entryName' => $parser->getEntryName(), 'entryType' => $parser->getEntryType(), 'createDate' => $parser->getCreateDate(), 'updDate' => $parser->getUpdDate(), 'description'=> $parser->getDescription(), ] ); } |
2
Result
Result returned by BioPHP for the demonstration data.
Parsed record
| Entry name | TEST_FINGERPRINT |
|---|---|
| Entry type | COMPOUND(3) |
| Create date | 16-NOV-1995 |
| Update date | 06-JUN-1999 |
| Description | A test fingerprint used by the BioPHP unit tests, describing a conserved motif found in a fictitious protein family. |
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.