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
AccessionANDN920101
Descriptionalpha-CH chemical shifts (Andersen et al., 1992)
AuthorAndersen, N.H., Cao, B. and Chen, C.
TitlePeptide/protein structure analysis using the chemical shift index method: upfield alpha-CH values reveal dynamic helices and aL sites
JournalBiochem. and Biophys. Res. Comm. 184, 1008-1014 (1992)
Literature refs
  • LIT : 1810048b
  • PMID : 1575719

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.