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

Load CLI result in Python? #49

Open
mikekestemont opened this issue Jan 24, 2018 · 1 comment
Open

Load CLI result in Python? #49

mikekestemont opened this issue Jan 24, 2018 · 1 comment

Comments

@mikekestemont
Copy link

Thanks again for a great tool. Is there an easy way to load the result of an alignment created with the command line tool into a Python Collation object? (I want to use the Java tool for its speed, but keep the flexible visualization and postprocessing capabilities that I have in a Jupyter notebook.)

@rhdekker
Copy link
Member

rhdekker commented Feb 5, 2018

Hi. I am afraid there is no such possibility at the moment. The object that is visualised is actually the Variant Graph object, not the Collation object. The Collation object only holds the witness data, that is, the sequences of tokens to be aligned. The Variant Graph object contains the actual alignment. CollateX Java has an GraphML export that captures the alignment result in detail and writes it to disc. What is missing is a GraphML importer in CollateX Python that reads in the GraphML (which in itself is just an XML file) and recreates the Variant Graph object in memory, which then can be visualised in whatever way is desired.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants