2
# simple examples of Bio::Biblio usage
10
# number of articles in Medline with author Osborne...
11
my $num = new Bio::Biblio->find("Osborne","authors")->get_count;
13
# number of articles in Medline with author Osborne in year 2000...
14
$num = new Bio::Biblio->find("Osborne","authors")->
15
find("2000","year")->get_count;
17
# number of JBC articles...
18
$num = new Bio::Biblio->find("J Biol Chem","journal")->get_count;
20
# a reference as XML...
21
my $xml = new Bio::Biblio->get_by_id("3047008");
23
# get a reference to an array of ids...
24
my $arr_ref = new Bio::Biblio->find ("Osborne","authors")->
25
find("2000","year")->get_all_ids;
27
# retrieve the entry as text or retrieve specific text fields...
28
my $medline_id = "88329717";
29
my $ref = new Bio::Biblio->get_by_id($medline_id);
30
my $io = Bio::Biblio::IO->new( -result => "raw",
32
my $nextref = $io->next_bibref;
33
# print the entire hash...
34
my $dump = Data::Dumper->Dump([$nextref],["$medline_id"]);
35
# or just the abstract...
36
my $abstract = $nextref->{article}->{abstract}->{abstractText};
37
# some hash references are stored in arrays
38
foreach my $ref ( @{$nextref->{article}->{authors}} ) {
39
foreach my $val (values %{$ref}) {
40
print $val->{lastName}," ",$val->{initials},"\n";
44
my $year = $nextref->{article}->{journal}->{journalIssue}->{pubDate}->{year};
45
my $title = $nextref->{article}->{articleTitle};
49
Output from Data::Dumper->Dump:
54
'nameOfSubstance' => 'DNA, Fungal',
55
'registryNumber' => '0'
58
'nameOfSubstance' => 'DNA, Superhelical',
59
'registryNumber' => '0'
62
'nameOfSubstance' => 'RNA Polymerase II',
63
'registryNumber' => 'EC 2.7.7.-'
67
'medlineTA' => 'Genes Dev',
68
'country' => 'UNITED STATES',
69
'nlmUniqueID' => '8711660'
72
'medlineID' => '88329717',
73
'status' => 'Completed',
89
'grantID' => '5R01 GM30454-05',
94
'medlinePgn' => '766-72'
97
'abstractText' => 'We show that induction of transcription of a CYC1-lacZ fusion gene, borne on a yeast plasmid, causes an increase in negative superhelicity of approximately five turns. This increase is abolished by deletion of either essential element of the CYC1 promoter, the upstream activation site (UAS), or the TATA boxes. Several experiments indicate that the size of the increase is proportional to the size of the transcribed region. First, an internal deletion removing half of the CYC1-lacZ transcribed region results in a plasmid whose negative superhelicity on induction is intermediate between promoter-deletion plasmids and the parental plasmid. Second, plasmids bearing insertions of a fragment containing the putative CYC1 terminator into the CYC1-lacZ fusion gene have relative negative superhelicities proportional to the length of the truncated fusion transcripts generated. A plausible model explaining these observations is that local unwinding of the double helix by transcribing RNA polymerase generates positively supercoiled DNA, which is subsequently relaxed by a topoisomerase.'
102
'publicationTypes' => [
109
'lastName' => 'Osborne',
111
'type' => 'PersonalName'
117
'lastName' => 'Guarente',
119
'type' => 'PersonalName'
123
'articleTitle' => 'Transcription by RNA polymerase II induces changes of DNA topology in yeast.',
124
'affiliation' => 'Massachusetts Institute of Technology, Department of Biology, Cambridge 02139.'
133
'descriptorName' => 'Chromosome Deletion'
136
'descriptorName' => 'DNA, Fungal',
139
'subHeading' => 'genetics',
143
'subHeading' => 'ultrastructure'
148
'descriptorName' => 'DNA, Superhelical',
151
'subHeading' => 'genetics'
156
'descriptorName' => 'Genes, Fungal'
159
'descriptorName' => 'Promoter Regions (Genetics)'
162
'descriptorName' => 'RNA Polymerase II',
165
'subHeading' => 'metabolism',
171
'descriptorName' => 'Saccharomyces cerevisiae',
174
'subHeading' => 'genetics',
180
'descriptorName' => 'Support, Non-U.S. Gov\'t'
183
'descriptorName' => 'Support, U.S. Gov\'t, P.H.S.'
186
'descriptorName' => 'Transcription, Genetic'
194
'citationSubsets' => [
197
'type' => 'MedlineCitation',