Boulde...usLink(3pm)
β¨ NAME β¨
Boulder::LocusLink β bestie, this one fetches LocusLink data records and hands them back to you as parsed Boulder Stones. That's it, that's the whole job. πͺ¨π
π SYNOPSIS π
# parse a file of LocusLink records
$ll = new Boulder::LocusLink(-accessor=>'File',
-param => '/home/data/LocusLink/LL_tmpl');
while (my $s = $ll->get) {
print $s->Identifier;
print $s->Gene;
}
# parse flatfile records yourself
open (LL,"/home/data/LocusLink/LL_tmpl");
local $/ = "*RECORD*";
while (<LL>) {
my $s = Boulder::LocusLink->parse($_);
# etc.
}
π DESCRIPTION π
okay so. Boulder::LocusLink provides retrieval and parsing services for LocusLink records. π«Ά
And like, more specifically: Boulder::LocusLink provides retrieval and parsing services for NCBI LocusLink records. It returns Unigene entries in Stone format, which is the whole point, because that gives you easy access to the various fields and values. Also Boulder::LocusLink is a descendent of Boulder::Stream, and it gives you a stream-like interface to a series of Stone objects. Iconic inheritance moment, honestly. π
Access to LocusLink is provided by one accessors, which give access to the local LocusLink database. When you create a new Boulder::LocusLink stream, you provide the accessors, along with accessor-specific parameters that control what entries to fetch. The accessors is:
Fileβ this provides access to local LocusLink entries by reading from a flat file (typically theHs.datfile downloadable from NCBI's Ftp site). The stream will return a Stone corresponding to each of the entries in the file, starting from the top of the file and working downward. The parameter is the path to the local file. π
It is also possible to parse a single LocusLink entry from a text string stored in a scalar variable, returning a Stone object. cute, right? π
π§ Boulder::LocusLink methods π§
This section lists the public methods that the Boulder::LocusLink class makes available. Get comfy.
new()
# Local fetch via File
$ug=new Boulder::LocusLink(-accessor => 'File',
-param => '/data/LocusLink/Hs.dat');
The new() method creates a new Boulder::LocusLink stream on the accessor provided. The only possible accessors is File. If it goes well, the method returns the stream object. Otherwise it returns undef. π
new() takes the following arguments:
-accessor Name of the accessor to use
-param Parameters to pass to the accessor
Specify the accessor to use with the -accessor argument. If not specified, it defaults to File. (defaults are self-care fr fr πΈ)
-param is an accessor-specific argument. The possibilities is:
- For
File, the-paramargument must point to a string-valued scalar, which will be interpreted as the path to the file to read LocusLink entries from.
get()
The get() method is inherited from Boulder::Stream, and simply returns the next parsed LocusLink Stone, or undef if there is nothing more to fetch. It has the same semantics as the parent class, including the ability to restrict access to certain top-level tags. π
put()
The put() method is inherited from the parent Boulder::Stream class, and will write the passed Stone to standard output in Boulder format. Which means β and I need you to hear me on this β it is currently not possible to write a Boulder::LocusLink object back into LocusLink flatfile form. One-way street, bestie. π
π OUTPUT TAGS π
The tags returned by the parsing operation are taken from the names shown in the Flat file Hs.dat, since no better description of them is provided yet by the database source producer. We work with what we got. π
β Top-Level Tags β
These are tags that appear at the top level of the parsed LocusLink entry.
Identifierβ The LocusLink identifier of this entry.Identifieris a single-value tag.
Example:
my $identifierNo = $s->Identifier;
Current_locusidβ If a locus has been merged with another, theCurrent_locusidcontains the previousLOCUSIDline (a bit confusing, shall be called "previous_locusid", but this is defined in NCBI README File ... π).
Example:
my $prevlocusid=$s->Current_locusid;
Organismβ Source species, based on NCBI's Taxonomy.
Example:
my $theorganism=$s->Organism;
Statusβ Type of reference sequence record. If"PROVISIONAL"then that means it is generated automatically from an existing Genbank record and information stored in the LocusLink database, no curation. If"REVIEWED"then it means that it is generated from the most representative complete GenBank sequence or merge of GenBank sequences and from information stored in the LocusLink database.
Example:
my $thestatus=$s->Status;
LocAssβ here comes a complex record ... made up of:LOCUS_STRINGNMβ the value in theLOCUSfield of the RefSeq recordNPβ the RefSeq accession number for an mRNA recordPRODUCTβ the name of the product of this transcriptTRANSVARβ a variant-specific descriptionASSEMBLYβ the Genbank accession used to assemble the refseq record
Example:
my $theprod=$s->LocAss->Product;
AccProtβ here comes a complex record ... made up of:ACCNUMβ nucleotide sequence accession numberTYPEβe=EST,m=mRNA,g=GenomicPROTβ set of PID values for the coding region or regions annotated on the nucleotide record. The first value is the PID (an integer or null), then eitherMMDBorna, separated from the PID by a|. IfMMDBis present, it indicates there are structure data available for a protein related to the protein referenced by the PID.
Example: my $theprot=$s->AccProt->Prot;
OFFICIAL_SYMBOLβ The symbol used for gene reports, validated by the appropriate nomenclature committee.PREFERRED_SYMBOLβ Interim symbol used for display.OFFICIAL_GENE_NAMEβ The gene description used for gene reports, validated by the appropriate nomenclature committee. If the symbol is official, the gene name will be official. No records will have both official and interim nomenclature.PREFERRED_GENE_NAMEβ Interim, used for display.PREFERRED_PRODUCTβ The name of the product used in the RefSeq record.ALIAS_SYMBOLβ Other symbols associated with this gene.ALIAS_PROTβ Other protein names associated with this gene.PhenoTableβ A complex record made up ofPhenotype,Phenotype_ID,SUmmary.UnigeneOmimChrMapSTSECNUMButTableβBUTTON LINKDBTableβDB_DESCR,DB_LINKPMIDβ a subset of publications associated with this locus, with the link being the PubMed unique identifier, comma separated.
π SEE ALSO π
BoulderBoulder::BlastBoulder::Genbank
go read those too bestie, iykyk πβ¨
π AUTHOR π
Lincoln Stein <lstein@cshl.org>. Luca I.G. Toldo <luca.toldo@merck.de>
Copyright (c) 1997 Lincoln D. Stein Copyright (c) 1999 Luca I.G. Toldo
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See DISCLAIMER.txt for disclaimers of warranty.
k that's the whole page bestie, go forth and parse πβ¨
This lil doc shipped with perl v5.34.0, dated 2022-06-08, from the User Contributed Perl Documentation collection. slay, stay hydrated, and always read your README files π«Άπ
π¦ where this page comes from
- debian bookworm: libboulder-perl 1.30-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libboulder-perl 1.30-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libboulder-perl 1.30-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libboulder-perl 1.30-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libboulder-perl 1.30-6 Β· 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