Hi everybody,
I have a bam file and use bioperl (Bio:B::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
to loop through the aligned reads and I am searching for anthing like
and i have one more question: is it possible to get the coverage of a segment using only the read start positions?
Thx
bye
I have a bam file and use bioperl (Bio:B::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
Code:
my $iterator = $bam->features(-iterator => 1, -flags => {M_UNMAPPED=>0}); while (my $align = $iterator->next_seq) { ... }
Code:
$align->addTag(key=>value)
Thx
bye
Comment