PIR: Protein Information Resource 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 21 | public function parsePirRecord() { $parser = DatabaseParserFactory::createParser("PIR"); $parser->parseDataFile(file($this->getParameter('kernel.project_dir') . '/public/data/sample.pir')); return $this->render('default/parsePirRecord.html.twig', [ 'entryName' => $parser->getEntryName(), 'entryType' => $parser->getEntryType(), 'recordTitle'=> $parser->getTitle(), 'accessions' => $parser->getAccessions(), 'organism' => $parser->getOrganism(), 'species' => $parser->getSpecies(), 'createDate' => $parser->getCreateDate(), 'length' => $parser->getLength(), 'molwt' => $parser->getMolwt(), 'checksum' => $parser->getChecksum(), 'keywords' => $parser->getKeywords(), ] ); } |
2
Result
Result returned by BioPHP for the demonstration data.
Parsed record
| Entry name | RHTDTO |
|---|---|
| Entry type | complete |
| Title | R-phycoerythrin alpha-1 chain - red alga (Gastroclonium coulteri) |
| Accessions |
|
| Organism | domestic rabbit |
| Species | Oryctolagus cuniculus |
| Create date | 15-Jun-2001 |
| Length | 3 |
| Mol. weight | 380 |
| Checksum | 465 |
| Keywords |
|
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.