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

Feature: Output Pangenome sequence #49

Closed
josiahseaman opened this issue Oct 8, 2019 · 1 comment
Closed

Feature: Output Pangenome sequence #49

josiahseaman opened this issue Oct 8, 2019 · 1 comment

Comments

@josiahseaman
Copy link
Collaborator

Would you be so kind as to modify ODGI bin at 1bp bins to output a pangenome sequence? It'd be the concatenation of all node sequences in the order that you already sorted them. A single long string.

#Python pseudocode for pangenome matrix sequence
with open(bin_output_file, 'w') as out:
	out.write(regular_bin_output(my_sort_order))
	if bin_size == 1:
		out.write("'Pangenome Sequence':")
		pangenome = ''.join(node.seq for node in my_sort_order)
		out.write(pangenome)

This could potentially be triggered at every bin level or only bin_size = 1bp. Sequence length with real data tend to be 120% the size of the starting genome, so 100s of MB, not 100s of GB. Perhaps a command line flag? --emit_sequence

@ekg
Copy link
Contributor

ekg commented Oct 8, 2019 via email

@ekg ekg closed this as completed in 38b8535 Oct 16, 2019
ekg added a commit that referenced this issue Oct 16, 2019
write bin sequences in bin -j output to resolve #49
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