ProDom: protein domain family 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 parseProdomRecord() { $parser = DatabaseParserFactory::createParser("PRODOM"); $parser->parseDataFile(file($this->getParameter('kernel.project_dir') . '/public/data/sample.prodom')); return $this->render('default/parseProdomRecord.html.twig', [ 'entryNo' => $parser->getEntryNo(), 'accession' => $parser->getAccession(), 'release' => $parser->getRelease(), 'domainCount' => $parser->getDomainCount(), 'freqNames' => $parser->getFreqNames(), 'keywords' => $parser->getKeywords(), ] ); } |
2
Result
Result returned by BioPHP for the demonstration data.
Parsed record
| Entry number | 20167 |
|---|---|
| Accession | PD266930 |
| Release | 2002.1 |
| Domain count | 10 |
| Frequent names |
|
| 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.