Open c0ntradicti0n opened 2 years ago
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='
Cool! I see. Thanks!
I did not get the idea of CIGAR referring to traceback until your answer. if this would have happened, I would have found it in the straight documentation for this case...: https://github.com/jeffdaily/parasail-python#tracebacks
Am Mo., 14. Feb. 2022 um 18:46 Uhr schrieb Jeff Daily < @.***>:
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='
— Reply to this email directly, view it on GitHub https://github.com/jeffdaily/parasail/issues/93#issuecomment-1039373453, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALCOE7P3YT77BI73CQHOUP3U3E5XNANCNFSM5OF4A7DA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID: @.***>
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?