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

Link creation fails on minimal example? #74

Closed
winni2k opened this issue Oct 8, 2018 · 4 comments
Closed

Link creation fails on minimal example? #74

winni2k opened this issue Oct 8, 2018 · 4 comments

Comments

@winni2k
Copy link

winni2k commented Oct 8, 2018

I have created a gist with the relevant input and log files.

When I run mccortex with kmer size 3 with an input fasta containing two reads of length 4, and I then thread the same reads through the resulting graph, I do not get any links in the links file. Is this a bug, or am I doing something wrong?

@noporpoise
Copy link
Member

For a repeat of length L you need a read of length L+2 to pair input and output edges. The shortest repeat in a k=3 graph is 3bp, so you need a read of 5bp covering it to generate links across it. Adding a base at the beginning should generate four links:

>0
GCGTT
>1
CCGTA

@winni2k
Copy link
Author

winni2k commented Oct 9, 2018

Thanks! That works.

A second question, since we're on this topic: Does mccortex annotate links in through bubbles or does mccortex only annotate through cycles? If not, why not?

@noporpoise
Copy link
Member

Links are only added to tangles -- parts of the graph that collapse down then split out again. A simple bubble can be traversed without links if you try walking down all the options one at a time. I'll try to add some better documentation on links - sorry I don't have time right now. The paper on Linked de Bruijn graphs (or my thesis when I upload it) might be the best place to start.

@winni2k
Copy link
Author

winni2k commented Oct 16, 2018 via email

@winni2k winni2k closed this as completed Oct 16, 2018
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