BP_BIBLIO(1p)
π BP_BIBLIO π
okay bestie, buckle up π this is bp_biblio from the 1p manual β User Contributed Perl Documentation, the whole vibe. It's a bioperl client for accessing and querying a bibliographic repository, and honestly it ate. Let me walk you through every single thing because we do not skip. π¦
β¨ VERSION β¨
version 1.70 β she's been through some things and she's thriving π
π SYNOPSIS π
Usage:
bp_biblio [vh]
bp_biblio [bcFgOpq] [-l <URL>]
bp_biblio [abcdDeFknmOpqrs] [-l <URL>] -i <collection-ID>
bp_biblio [abcdDeFknmOpqrs] [-l <URL>] - -find <keywords> \
[-attrs <attrs>]...
bp_biblio [Vq] [-l <URL>]
bp_biblio [FOq] [-f <filename>]
πΈ DESCRIPTION πΈ
So bp_biblio is a client that shows you how to use the Bio::Biblio module β which is, like, the module for accessing and querying a bibliographic repository. β¨
It also shows off Bio::Biblio::IO::medlinexml and Bio::Biblio::IO::medline2ref, which convert XML MEDLINE citations into a simple hash table and into full Perl objects. Iconic of them honestly. π«Ά
It has so many options because it's trying to cover as many methods as possible. And because of that, it can also be used as a fully functional command-line client for querying a repository and retrieving citations from it. Periodt. π₯
β¨ OPTIONS β¨
π What service to contact:
-l <URL>β a location where a Bibliographic Query service is provided as a WebService. The default ishttp://www.ebi.ac.uk/openbqs/services/MedlineSRS, iykyk.
π What query collection to use:
Some options don't need you to specify a collection. Some do. Not me making you read the fine print π
-i <collection_id>β the collection ID. You get this from a previous invocation by specifying the argument-p(that's the print ID one, we'll get there π)-find <keywords> [-attrs <attrs>]β create a collection from citations containing the given keywords β either in all the default attributes, or only in the attributes you name.
You can repeat it! For example:
-find brazma -attrs authors -find -study
(the repetitions refine previous results π)
Both <keywords> and <attrs> may be comma-delimited multi-values.
Heads up:-findmust be separated from the rest of the options by-.
Also heads up: this script is a bit stupid regarding quoted keywords, or keywords containing commas... TBD better. She's trying her best π
- What XML format is used for citations:
-Fmβ MEDLINE (this is the default, bestie)-Fpβ PubMed
π What to do (with the query collection):
-g <id>β get citation<id>-cβ get count (a number of citations)-pβ print collection ID (which you may use in the next invocation as an-iargument); it also implies-k, sneaky-bβ print citations in a non-XML format (TBD)
Other options can be used only on a sub-collection β which you can get directly by specifying the -i argument, or indirectly by specifying one or more queries with -find arguments:
-dβ get all citation IDs-nβ get next citation-m [<how_many>]β gethow_manymore-rβ reset iteration to the first citation in the collection (now you can use-nor-magain π)-aβ get all citations β as an array-sβ as-abut get it as one string-eβ check if given collection exists and has more citations-kβ keep the resulting collection persistent (this only makes sense when collection IDs are being printed, otherwise you would not know how to contact the persistent collection next time π)-Dβ destroy given collection (makes sense together with-i)
Options specifying output format of the results:
-Oxβ output in XML format (the default)-Ooβ output as Biblio objects-Orβ output as a raw hashtable
The options above can also be used for converting an XML MEDLINE local file without using any SOAP connection at all:
-f <filename>β an XML file to be read and converted
Options dealing with controlled vocabularies:
-Vnβ get all vocabulary names-Vv::<name>β get all values from vocabulary<name>-Va::<name>β get everything from vocabulary<name>-Vd::<name>::<value>β get description of<value>from vocabulary<name>-Ve::<name>::<value>β return1if<value>exists in vocabulary<name>
And the remaining options, the little guys π₯Ί:
-hβ get help-vβ get version-qβ be quiet (less verbose)
π EXAMPLES π
bp_biblio - -find Java -attrs abstract -find perl
Several separate invocations sharing the same query collection:
bp_biblio -p -q - -find Brazma,Robinson > b.tmp
bp_biblio -i `cat b.tmp` -d
MEDLINE2005/10693778
MEDLINE2005/10977099
MEDLINE2005/11726920
MEDLINE2005/12225585
MEDLINE2005/12227734
bp_biblio -i `cat b.tmp` -g 10693778
<MedlineCitation Status="Completed">
...
</MedlineCitation>
bp_biblio -i `cat b.tmp` -e
Exists: 1 Has next: 1
bp_biblio -i `cat b.tmp` -D
Destroyed OK.
bp_biblio -i `cat b.tmp` -e
Exists: 0 Has next: 0
Access to controlled vocabularies:
bp_biblio -Vn
MEDLINE2005/JournalArticle/properties
MEDLINENEW/resource_types
MEDLINE2005/resource_types
MEDLINE2005/Person/properties
MEDLINE2005/*/publication_type
MEDLINENEW/JournalArticle/properties
repository_subsets
MEDLINE2005/*/citation_subset
bp_biblio -Vv::MEDLINE2005/JournalArticle/properties
AllText
ID
PMID
ISSN
...
Converting local XML MEDLINE file:
bp_biblio -g 10693778 > a_file.xml
bp_biblio -f a_file.xml -Oo ... to Perl objects
bp_biblio -f a_file.xml -Or ... as a raw hash
π¦ ENVIRONMENT VARIABLES π¦
HTTPPROXY = <HTTP proxy server>
Use this if you run this script on a machine which needs to access remote HTTP targets via a proxy server. Like, if you're behind the firewall bestie, this is your girl π For example:
export HTTPPROXY=http://128.243.220.41:3128
bp_biblio -c
π°οΈ HISTORY π°οΈ
Written February 2002. Updated July 2005. A vintage. An heirloom. π
π FEEDBACK π
π¬ Mailing lists
User feedback is an integral part of the evolution of this and other Bioperl modules. Send your comments and suggestions preferably to the Bioperl mailing list. Your participation is much appreciated, fr fr π«Ά
bioperl-l@bioperl.org - General discussion
http://bioperl.org/wiki/Mailing_lists - About the mailing lists
π« Support
Please direct usage questions or support issues to the mailing list:
bioperl-l@bioperl.org
rather than to the module maintainer directly. Many experienced and responsive experts will be able look at the problem and quickly address it. Please include a thorough description of the problem with code and data examples if at all possible. The more deets the better, bestie π
π Reporting bugs
Report bugs to the Bioperl bug tracking system to help us keep track of the bugs and their resolution. Bug reports can be submitted via the web:
https://redmine.open-bio.org/projects/bioperl/
βοΈ LEGAL βοΈ
βοΈ Authors
Martin Senger <martin.senger@gmail.com>
π Copyright and License
This software is Copyright (c) by 2002 European Bioinformatics Institute and released under the license of the same terms as the perl 5 programming language system itself.
okay that's the whole page, no notes π
this was perl v5.36.0, dated 2023-02-14, and you just read BP_BIBLIO(1p) β go query something iconic, bestie πππ
π¦ where this page comes from
- debian trixie: libbio-biblio-perl 1.70-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libbio-biblio-perl 1.70-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libbio-biblio-perl 1.70-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libbio-biblio-perl 1.70-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms