I have a bam file and use bioperl (Bio::DB::Sam) to work with it. Now i wanted to ask if there is any possibility to add tags to alignments in this File?
i use
my $iterator = $bam->features(-iterator => 1,
-flags => {M_UNMAPPED=>0});
while (my $align = $iterator->next_seq) {
...
}
to loop through the aligned reads. Now i am searching vor anthing like
$align->addTag(key=>value)
bye