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 number20167
AccessionPD266930
Release2002.1
Domain count10
Frequent names
  • FADR : 2
  • Y586 : 1
Keywords
  • 0 : COMPLETE
  • 1 : PROTEOME
  • 2 : DNA-BINDING
  • 3 : FATTY
  • 4 : TRANSCRIPTION
  • 5 : REGULATION

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.