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

Kind of CIGAR #93

Open
c0ntradicti0n opened this issue Feb 12, 2022 · 2 comments
Open

Kind of CIGAR #93

c0ntradicti0n opened this issue Feb 12, 2022 · 2 comments

Comments

@c0ntradicti0n
Copy link

I get with the python binding with pyssw an integer array for the Cigar with few elements depending on gaps in the alignment as the struct for the cigar is defined.

But shouldn't it be a string with the defined diff format or is there some explanation for the encoding? Or is the char* parasail_cigar_decode(parasail_cigar_t *cigar); function missing in the python bindings?

@jeffdaily
Copy link
Owner

Since this issue is focused on the parasail python bindings it might have been better to file the issue there.

The decode method is part of the cigar object in the python bindings. For example:

>>> import parasail
>>> result = parasail.sw_trace("asdf", "asdf", 10, 1, parasail.blosum62)
>>> print(result.cigar.seq)
[71]
>>> print(result.cigar.decode)
b'4='

@c0ntradicti0n
Copy link
Author

c0ntradicti0n commented Feb 17, 2022 via email

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