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

Line by Line processing? #7

Open
sebastian-nehrdich opened this issue Nov 3, 2019 · 1 comment
Open

Line by Line processing? #7

sebastian-nehrdich opened this issue Nov 3, 2019 · 1 comment

Comments

@sebastian-nehrdich
Copy link

Hi there,

Great work! I just wonder: What would be necessary to change in the code to let it process the lines in file1 and file2 one on one instead of all against all?
So like: line1 is compared with line1 in the other file, line2 with line2 in the other file and so on.
That would be really helpful!

@swarris
Copy link
Owner

swarris commented Nov 7, 2019

Hi,

Thanks for the compliment!
To do this, the tool Pacasus contains already 95% of the code to do this. In Pacasus file1 and file2 are forced to be the same file for aligning only read 1 to itself.
This does come with a performance penalty: in this implementation there is only one read processed at the time. Are you processing short (<5kb) reads? In that case it more efficient to change the cuda/opencl code. In the naive implementation the memory usage will be the same as doing all-vs-all, but should be relatively easy to implement this.

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

No branches or pull requests

2 participants