Bio::D...::Query(3pm)
πΈ Bio::DB::HTS::Query π
okay bestie, so this is Bio::DB::HTS::Query β the perl manpage for it (that's the (3pm) part, iykyk). It's the lil object that holds the query portion of a BAM/SAM alignment. Pull up a chair, we're doing bioinformatics but make it cute. π§¬β¨
π LICENSE
Copyright [2015-2018] EMBL-European Bioinformatics Institute
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
π«Ά AUTHOR
Rishi Nag <rishi@ebi.ac.uk<gt>
not me leaving the angle bracket situation exactly as written bestie, I don't make the rules, I just transcribe them π
β¨ NAME β¨
Bio::DB::HTS::Query β it's the object representing the query portion of a BAM/SAM alignment. main character of exactly one half of an alignment, periodt. π
π SYNOPSIS
so like. you've got an alignment, right? and you got it from a Bio::DB::HTS database? slay. here's the vibe:
Given an alignment retrieved from a Bio::DB::HTS database,
my $query = $alignment->query;
my $name = $query->display_name;
my $start = $query->start;
my $end = $query->end;
my $dna = $query->dna; # dna string
my $seq = $query->seq; # Bio::PrimarySeq object
my @scores = $query->qscore; # quality score
look at her go π¦ literally just grab the query off the alignment and then ask her whatever you wanna know.
π DESCRIPTION
This is a simple Bio::SeqFeatureI object that represents the query part of a SAM alignment. That's it, that's the whole job. she's simple, she's effective, she's iconic. π
π§ Methods
$seqid = $query->seq_idβ the name of the read. π$name = $query->nameβ the read name (same asseq_idin this case, yes literally the same, no she's not being shady).$name = $query->display_nameβ the readdisplay_name(also same asseq_idin this case, trio of twins fr fr).$tag = $query->primary_tagβ the string"match". that's it. that's the tag. π$tag = $query->source_tagβ the string"sam/bam".$start = $query->startβ the start of the match in read coordinates.$end = $query->endβ the end of the match in read coordinates;$len = $query->lengthβ the length of the read. π$seq = $query->seqβ aBio::PrimarySeqrepresenting the read sequence in REFERENCE orientation. okay so orientation matters, keep that in your notes bestie.$scores = $query->qscoreβ the read quality scores. In a list context, a list of integers equal in length to the read sequence length. In a scalar context, an array ref. The qscores are in REFERENCE sequence orientation. (yes. again. orientation. the way she keeps reminding us π)$dna = $query->dnaβ the DNA string in reference sequence orientation. π§¬$strand = $query->strandβ if the query was reversed to align it,-1. Otherwise+1. that's the whole vibe check right there.$seq = $query->subseq($start,$end)β return aBio::PrimarySeqobject representing the requested subsequence on the read. give her a range, she gives you a seq. obsessed. π«Ά
π₯ SEE ALSO
Bio::PerlBio::DB::HTSBio::DB::HTS::AlignmentBio::DB::HTS::Constants
go read those too, they're the friend group and they all ate. π
perl v5.40.0 Β· 2024-10-31
and that's the whole page bestie!! π this was Bio::DB::HTS::Query from the perl docs, version v5.40.0, dated 2024-10-31. no cap, you're now a query girlie. go forth and align. πΈβ¨ππ¦
π¦ where this page comes from
- debian trixie: libbio-db-hts-perl 3.01-5 Β· Apache-2.0
- ubuntu questing: libbio-db-hts-perl 3.01-5
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms