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

Bug in mccortex join with --sort option #80

Open
winni2k opened this issue Mar 18, 2019 · 0 comments
Open

Bug in mccortex join with --sort option #80

winni2k opened this issue Mar 18, 2019 · 0 comments

Comments

@winni2k
Copy link

winni2k commented Mar 18, 2019

I think I have encountered a bug in mccortex join when I use it with the --sort output option. Here is what I mean:

echo -e '>1\nCCCGGG' > 1.fa
echo -e '>1\nCCCAAA' > 2.fa

mccortex 3 build -k 3 -s 1 -1 1.fa 1.ctx
mccortex 3 build -k 3 -s 2 -1 2.fa 2.ctx

## This works OK
mccortex 3 join -o isec.ctx -i 2.ctx 1.ctx

mccortex 3 view --kmers isec.ctx 2>/dev/null
# returns correct value:
# CCC 2 ........

rm isec.ctx

## This does not 
mccortex 3 join --sort -o isec.ctx -i 2.ctx 1.ctx 2>/dev/null

mccortex 3 view --kmers isec.ctx
# returns all kmers in 2.ctx with zero coverage and edges removed???:
# AAA 0 ........
# CAA 0 ........
# CCA 0 ........
# CCC 0 ........
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

1 participant