[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

help with complete cigar output #149

Closed
PGonzo opened this issue Apr 18, 2018 · 7 comments
Closed

help with complete cigar output #149

PGonzo opened this issue Apr 18, 2018 · 7 comments
Labels

Comments

@PGonzo
Copy link
PGonzo commented Apr 18, 2018

I am attempting to find the locations of indels between two human MTDNA sequences. I would like to use the cigar from minimap2 for this purpose. For testing, I downloaded the reference fasta for MTDNA from ensembl and made a copy of it for comparison. When I use the full genome assembly alignment on the two identical reference fastas I get the following cigar: cg:Z:16569M. Which is what I expect. When I make a deletion (6NT) and insertion (1NT) a couple hundred nucleotides into my comparison fasta I get cg:Z:310M6D1053M3I15200M. Again, what I expect.

However, when I make a deletion (4th NT in) in the beginning of the fasta I get: cg:Z:16565M. So the three nucleotides before the deletion are not accounted for in the cigar. I was expecting, perhaps naively cg:Z:3M1D16565M. This behavior occurs when I delete or insert nucleotides at the end of the comparison fasta as well. I downloaded the most recent version of minimap2 and my commands are:minimap2 -c -x asm5 reference.fasta reference2.fa > aln.paf . Is there a parameter I should set to enable the ends to align and the cigar to capture everthing from start to finish?

Thank you for your time.
Patrick

@lh3 lh3 added the question label Apr 18, 2018
@lh3
Copy link
Owner
lh3 commented Apr 18, 2018

Minimap2 generally does local alignment. A gap towards the end will lead to a lower alignment score, so it is clipped. You can use

minimap2 -c -x asm5 --end-bonus=20

to ask minimap2 to prefer end-to-end alignment.

@lh3
Copy link
Owner
lh3 commented Apr 30, 2018

Just curious: does option --end-bonus solve your problem? Thanks.

@PGonzo
Copy link
Author
PGonzo commented May 2, 2018 via email

@lh3
Copy link
Owner
lh3 commented May 2, 2018

If that is not working, it should be a bug. Could you send me your sequences? Thanks.

@PGonzo
Copy link
Author
PGonzo commented May 2, 2018 via email

@lh3
Copy link
Owner
lh3 commented May 2, 2018

I have not seen the sequences. Could you send via email to lh3@me.com? Thanks.

@lh3
Copy link
Owner
lh3 commented Nov 5, 2018

Stalled. Closing. Please feel free to reopen it if you have followups. Thanks.

@lh3 lh3 closed this as completed Nov 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants