You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the example code below will get the length of the indel (3) but I don't know how to get the inserted or deleted bases.
// mark indel startmatch alignment.indel(){
bam::pileup::Indel::Ins(len) => println!("Insertion of length {} between this and next position.", len),
bam::pileup::Indel::Del(len) => println!("Deletion of length {} between this and next position.", len),
bam::pileup::Indel::None => ()}
In samtools mpileup this would be +3GGC for insertion or -3GGC for deletion. Is there an existing method for this or do I need to manually process this by reading the CIGAR of each read?
Thank you for the help.
The text was updated successfully, but these errors were encountered:
Is there a way to get the inserted or deleted sequence while doing a pileup?
For example the reference is the first line and there are 3 mapped reads.
The first read has an insertion
GGC
and the third has a deletion ofGGC
.Using the example code below will get the length of the indel (3) but I don't know how to get the inserted or deleted bases.
In samtools mpileup this would be
+3GGC
for insertion or-3GGC
for deletion. Is there an existing method for this or do I need to manually process this by reading the CIGAR of each read?Thank you for the help.
The text was updated successfully, but these errors were encountered: