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

exporting all possible closed circular path in fasta from a gfa file #563

Open
splaisan opened this issue Mar 13, 2024 · 1 comment
Open

Comments

@splaisan
Copy link

Hi

I am new to graph analysis and was sent here by Erik Garrison (GFA-spec/GFA-spec#123)

Could someone guide me on which odgi command(s) to use to achieve my goal of generating all possible closed circular paths (in fasta) format from a gfa graph obtained from Flye.

Manually I can create the four models from this gfa but I would like to automate the process for future pipelines

Here is the truncated gfa content (cut at 40 char-)

thanks in advance

H	VN:Z:1.0
S	1	CTATCTTGGTTCCACAAATCTCATTACACCAATATT
S	2	AAGTGGGAGTGGATTAACAGAAATGGCCCCGTACGG
S	3	AAGTGGGGGTGGAGTAAGAGAAATTGCCCCGTACTG
S	4	TAATTGAGTTCCGTGTTCCGGGCAGCACCACCACTG
S	5	GCACTCGAACGACGAAGTAAAGAACGCGAAAAAGCG
S	6	CACTCTGACAATTCGTTGATCAAGTCACGGTATTTA
L	1	+	6	-	0M	RC:i:37
L	1	-	5	+	0M	RC:i:43
L	2	+	6	+	0M	RC:i:96
L	2	-	5	-	0M	RC:i:91
L	3	+	6	+	0M	RC:i:60
L	3	-	5	-	0M	RC:i:58
L	4	-	5	+	0M	RC:i:108
L	4	+	6	-	0M	RC:i:115
P	contig_5	5+	*
P	contig_6	6+	*
P	contig_1	1+	*
P	contig_2	2+	*
P	contig_3	3+	*
P	contig_4	4+	*

312413118-78b5ec71-9fd6-4ec0-ab77-1e3f8563dc81

@sivico26
Copy link

@splaisan, have you tried the get_organelle_from_assembly.py script from GetOrganelle? I think it does what you want.

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