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:

πŸŽ€ 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: -find must 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 -i argument); 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>] β€” get how_many more
  • -r β€” reset iteration to the first citation in the collection (now you can use -n or -m again πŸ”)
  • -a β€” get all citations β€” as an array
  • -s β€” as -a but 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> β€” return 1 if <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/

✍️ Authors

Martin Senger <martin.senger@gmail.com>

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