You can also just do
pycall(py_aln.align[:globalds], PyAny, "AHHH","HHHA",py_mat.ident,-0.25,-
0.5)
On Wednesday, December 4, 2013 8:15:19 PM UTC-5, Diego Javier Zea wrote:
>
> *PyObject* can be converted to *Function*.
> This works :)
>
> julia> a = py_aln.align[:globalds]
> PyObject <Bio.pairwise2.alignment_function instance at 0xaf48680>
>
> julia> aa = convert(Function,a)
> fn (generic function with 1 method)
>
> julia> aa("AHHH","HHHA",py_mat.ident,-0.25,-0.5)
> 1-element Array{Any,1}:
> ("AHHH-","-HHHA",17.5,0,5)
>
> Thanks
>