Bio::D...erator(3pm)

πŸ’– LICENSE πŸ’–

okay bestie, legal stuff first because we respect our institutions ✨

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.


πŸ¦‹ NAME πŸ¦‹

Bio::DB::HTS::Kseq::Iterator β€” it's The Kseq iterator, no cap πŸ’…


🌸 DESCRIPTION 🌸

So basically this is an object for iterating through the available records, one at a time, like a little queue of sequence besties waiting for their moment πŸŽ€

There are other methods hanging around too, but they're undocumented β€” lowkey on purpose, because the way you should be living your life is using the "next_seq" methods as much as possible. That's the vibe. That's the assignment. Periodt.


✨ SYNOPSIS ✨

my $iter = $kseq->iterator();
while(my $r = $iter->next_seq()) {
  say $r->name;
  say $r->desc;
  say $r->seq;
  say $r->qual;
}

look at her go 😭 she's just looping through records and printing the whole little glow-up. iconic behaviour fr fr.


πŸŽ€ METHODS πŸŽ€

🧚 "next_seq" 🧚

Returns a blessed Bio::DB::HTS::Kseq::Record instance. like a whole little object with a bow on it 🫢

πŸ“ "next_seq_hash" πŸ“

Returns a raw HashRef with the keys name, desc, seq and qual available. no blessing, just straight facts, iykyk πŸ’…


and that's the whole page, bestie πŸ₯° this was Bio::D...erator(3pm) from the User Contributed Perl Documentation, running under perl v5.40.0, dated 2024-10-31. go forth and iterate responsibly πŸ’–βœ¨πŸŒˆ

πŸ“¦ where this page comes from