AAindex: amino acid index 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 | public function parseAaindexRecord() { $parser = DatabaseParserFactory::createParser("AAINDEX"); $parser->parseDataFile(file($this->getParameter('kernel.project_dir') . '/public/data/sample.aaindex')); return $this->render('default/parseAaindexRecord.html.twig', [ 'accession' => $parser->getAccession(), 'description'=> $parser->getDescription(), 'author' => $parser->getAuthor(), 'recordTitle'=> $parser->getTitle(), 'journal' => $parser->getJournal(), 'litRefs' => $parser->getLitRefs(), ] ); } |
2
Result
Result returned by BioPHP for the demonstration data.
Parsed record
| Accession | ANDN920101 |
|---|---|
| Description | alpha-CH chemical shifts (Andersen et al., 1992) |
| Author | Andersen, N.H., Cao, B. and Chen, C. |
| Title | Peptide/protein structure analysis using the chemical shift index method: upfield alpha-CH values reveal dynamic helices and aL sites |
| Journal | Biochem. and Biophys. Res. Comm. 184, 1008-1014 (1992) |
| Literature refs |
|
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.