PRF: Protein Research Foundation 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
19
20
public function parsePrfRecord()
{
    $parser = DatabaseParserFactory::createParser("PRF");
    $parser->parseDataFile(file($this->getParameter('kernel.project_dir') . '/public/data/sample.prf'));
 
    return $this->render('default/parsePrfRecord.html.twig',
        [
            'entryCode'  => $parser->getEntryCode(),
            'entryName'  => $parser->getEntryName(),
            'source'     => $parser->getSource(),
            'commonName' => $parser->getCommonName(),
            'taxonomy'   => $parser->getTaxonomy(),
            'journal'    => $parser->getJournal(),
            'authors'    => $parser->getAuthors(),
            'recordTitle'=> $parser->getTitle(),
            'keywords'   => $parser->getKeywords(),
            'sequence'   => $parser->getSequence(),
        ]
    );
}
2

Result

Result returned by BioPHP for the demonstration data.

Parsed record
Entry code0904306A
Entry nameinterleukin 2
Source organismHomo sapiens
Common nameman
Taxonomy
  • 0 : Eucarya
  • 1 : Animalia
  • 2 : Metazoa
  • 3 : Chordata
  • 4 : Vertebrata
  • 5 : Gnathostomata
  • 6 : Mammalia
  • 7 : Eutheria
  • 8 : Primates
  • 9 : Catarrhini
  • 10 : Hominidae
JournalNature(London), 302(5906),305-310(1983)
Authors
  • 0 : Taniguchi,T.
  • 1 : Matsui,H.
  • 2 : Fujita,T.
  • 3 : Takaoka,C.
  • 4 : Kashima,N.
  • 5 : Yoshimoto,R.
  • 6 : Hamuro,J.
TitleStructure and expression of a cloned cDNA for human interleukin-2.
Keywords
  • 0 : Interleukin 2
  • 1 : Human
  • 2 : Cloning From cDNA Library
  • 3 : Seq Determination
  • 4 : 812bp
  • 5 : mRNA Hybridization Translation
Sequence
MYRMQLLSCIALSLALVTNSAPTSSSTKKTQLQLEHLLLDLQMILNGINNYKNPKLTRMLTFKFYMPKKATELKHLQCLEEELKPLEEVLNLAQSKNFHLRPRDLISNINVIVLELKGSETTFMCEYADETATIVEFLNRWITFCQSIISTLT

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.