HGBASE: human genome variation 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 parseHgbaseRecord()
{
    $parser = DatabaseParserFactory::createParser("HGBASE");
    $parser->parseDataFile(file($this->getParameter('kernel.project_dir') . '/public/data/sample.hgbase'));
 
    return $this->render('default/parseHgbaseRecord.html.twig',
        [
            'haplotypeId' => $parser->getHaplotypeId(),
            'allele'      => $parser->getAllele(),
            'popName'     => $parser->getPopName(),
            'popIndiv'    => $parser->getPopIndiv(),
            'freqPerc'    => $parser->getFreqPerc(),
            'freqIndiv'   => $parser->getFreqIndiv(),
            'citation'    => $parser->getCitation(),
            'submitterName' => $parser->getSubmitterName(),
        ]
    );
}
2

Result

Result returned by BioPHP for the demonstration data.

Parsed record
Haplotype idHGBASE:000123
AlleleC/T
PopulationCaucasian (USA)
Individuals in population216
Frequency (%)2
Frequency (individuals)1039
CitationKoper J.W. et al., Hum Genet 104:256-261 (1999)
SubmitterJan. W. Koper

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.