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
OrganismHomo sapiens
Common namehuman
Taxonomic class
  • 0 : Eukaryota
  • 1 : Metazoa
  • 2 : Chordata
  • 3 : Craniata
  • 4 : Vertebrata
  • 5 : Mammalia
Is completeNO
GenBank release134
GenBank entries1234567
GenBank basepairs9876543210
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.