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

Replace N's with the reference #13

Open
migrau opened this issue Oct 10, 2018 · 3 comments
Open

Replace N's with the reference #13

migrau opened this issue Oct 10, 2018 · 3 comments

Comments

@migrau
Copy link

migrau commented Oct 10, 2018

Hi,
For very bad alignments with a lot of gaps, is it possible to fill them using the reference instead N's?
Thanks!

@bede
Copy link
Owner

bede commented Oct 10, 2018

Hi : ) Could you be more specific about what you mean by 'the' reference?

@migrau
Copy link
Author

migrau commented Oct 10, 2018

hi bede! E.g.

Ref.       AATGTCGGCT
read1    TAT
read2    TAT
read3                   GACT
read4                   GACT
kindel:    TATNNNGACT
desired: TATGTCGACT

Another question I just thought about, what is the kindel result if read1 is TCT and read2 TGT? So in the second position we would have A (ref), C (read1) and G (read2). It chooses the ref value for the 2nd postion (A)?

Thanks!

@bede
Copy link
Owner

bede commented Oct 12, 2018

Thanks for clarifying Miquel. At the moment this tool infers consensus using the SAM/BAM alone, meaning that to do this I would either have to rely on the SAM/BAM MD string for mismatching positions, which isn't generated by all aligners, or else accept a reference sequence as an optional argument. I did explore the former in a previous version of kindel, but for one reason or another moved away from this approach.

I agree that this would be a useful feature, and will see if I can find time to implement it. In the meantime if you find another tool that performs this task, please do let me know : )

Leaving this issue open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants