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
I check the result of GAM and BAM(suject from the last GAM). I found that the same read map to difference position in GAM and BAM. So I wonder if vg do realign while sujecting GAM to BAM?
The text was updated successfully, but these errors were encountered:
The positions in GAM are in graph space (node IDs and offsets), and the positions in BAM are in linear reference space (sequence names and offsets). So they can't be equal because they are different types of thing.
A GAM can carry approximate linear positions in its refpos field, but those are approximations based on the node IDs visited and not base-level start and stop positions, so they won't match the BAM read positions exactly.
vg surject does do some local realignment against the target linear reference when converting reads, because most downstream tools expect an alignment against the BAM's reference and not just the slice of an alignment against the graph that goes through the linear reference. So some material that softclipped in the graph might become aligned after surjection, or visa versa.
Can you provide an example of the GAM position and BAM position you are getting and how they are different, and what you would expect if they were the same?
I check the result of GAM and BAM(suject from the last GAM). I found that the same read map to difference position in GAM and BAM. So I wonder if vg do realign while sujecting GAM to BAM?
The text was updated successfully, but these errors were encountered: