[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

Short error-prone alignment #135

Closed
armintoepfer opened this issue Mar 22, 2018 · 2 comments
Closed

Short error-prone alignment #135

armintoepfer opened this issue Mar 22, 2018 · 2 comments
Labels

Comments

@armintoepfer
Copy link
Contributor
armintoepfer commented Mar 22, 2018

I'm trying to use minimap2 to cluster short pacbio insertions from raw subreads. I've had no success in finding the right parameter combination to get the alignment of those two fragments:

ATGACCCCCCACAGCTTTACCCACGCCACACACAGATCAGATCTGACTCAGGCTCTTTACTGAATCAGC
ACCCCCCACAGCTGTACCCAGCGCCACACACAGAGCAGACGCTGGAACACTGTTATTGAAGGAATCAGCAATGGGGTA

A naive SW gives me following result:

ATGACCCCCCACAGCTTTACCCA-CGCCACACACAGATCAGAT-CTGACTCAGGC-TCTTTACTGAATCAGC---------  81
   ||||||||||||| |||||| ||||||||||||| ||||  |||   ||    | || |  ||||||||         
---ACCCCCCACAGCTGTACCCAGCGCCACACACAGAGCAGACGCTGGAACACTGTTATTGAAGGAATCAGCAATGGGGTA  81

Btw, I'm using the C API, so internal hacks are possible :)

@lh3 lh3 added the question label Mar 22, 2018
@lh3
Copy link
Owner
lh3 commented Mar 22, 2018

I wouldn't recommend to use minimap2 for short noisy matches, but if you would like to do that anyway (reduce -k if you want even higher sensitivity):

./minimap2 -c -k11 -w1 -n2 -m10 -s20 first.fa second.fa

@lh3 lh3 closed this as completed Mar 22, 2018
@lh3
Copy link
Owner
lh3 commented Mar 22, 2018

The command line above truncates the second half of the alignment. You may reduce the mismatch penalty to save that:

./minimap2 -c -k11 -w1 -n2 -m10 -s20 -B2 first.fa second.fa

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