GENOME: whole-genome 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 | public function parseGenomeRecord() { $parser = DatabaseParserFactory::createParser("GENOME"); $parser->parseDataFile(file($this->getParameter('kernel.project_dir') . '/public/data/sample.genome')); return $this->render('default/parseGenomeRecord.html.twig', [ 'organism' => $parser->getOrganism(), 'commonName' => $parser->getCommonName(), 'taxClass' => $parser->getTaxClass(), 'isComplete' => $parser->getIsComplete(), 'gbRelease' => $parser->getGbRelease(), 'gbEntries' => $parser->getGbEntries(), 'gbBasepairs' => $parser->getGbBasepairs(), 'size' => $parser->getSize(), ] ); } |
2
Result
Result returned by BioPHP for the demonstration data.
Parsed record
| Organism | Homo sapiens |
|---|---|
| Common name | human |
| Taxonomic class |
|
| Is complete | NO |
| GenBank release | 134 |
| GenBank entries | 1234567 |
| GenBank basepairs | 9876543210 |
| Genome size (bp) | 3200000000 |
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.