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

Fragmented contigs #184

Open
Sebastien-Raguideau opened this issue Sep 20, 2018 · 4 comments
Open

Fragmented contigs #184

Sebastien-Raguideau opened this issue Sep 20, 2018 · 4 comments

Comments

@Sebastien-Raguideau
Copy link

Hello,
I am looking at the contig graph produced using contig2fastg. I saw sequential contigs with no branching.
Maybe I am missing something but if there is no branching why are those contigs not merged into a single one? Do I need to process the assembly and look for those?
Here is a bandade close up. Also, seems that the coverage for both is 1 is it relevant?
example
Best,
Seb

@voutcn
Copy link
Owner

voutcn commented Nov 1, 2018

Interesting. Could you show me the two sequences and the k used?

@Sebastien-Raguideau
Copy link
Author

Hello,
So I did a grep on the .gfa to extract sequence and links, that's this file. If you are interested I have other examples. Also, what I said previously about coverage being 1 was a mistake on my part, it's ~5.
k=141
Fragmented_contigs.txt
Best,
Seb

@voutcn
Copy link
Owner

voutcn commented Nov 11, 2018

The two sequences do not share any common k-mers, and I doubt why they are connected. Did you use megahit_toolkit's fasta2fastg to generate the graph?

@Sebastien-Raguideau
Copy link
Author

Sebastien-Raguideau commented Nov 11, 2018

Hi,
They do share a 141 long kmer but one of them need to be reverse complemented. I didn't realise it when first submitted. It's because I'm using the .gfa format which only store sequence in one orientation so the files are less heavy.
So, yes I am usually using megahit_toolkit contig2fastg to generate the graph. I then use one of Bandage function to translate the fastg file in .gfa . I need then script for renaming purpose, as translation as megahit_toolkit contig2fastg change the name of the contigs. Though it keeps things in the same order, so it is fine.
Best,
Seb

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