hi, I want to call Seq's FMIndex.find() from an existing Python module (the python module is hard to translate to Seq Style).
Is it possible to implement it ?
the code would be like:
@Seq
def find(s,indexPath):
import FMIndex
fmi = index_load(indexPath)
a = str
return fmi.find(a.__from_py__(s))
@python
def create_dict(FMIndexPath, freqs_table):
#freqs_table: python dictionary
x = 'ACGT'
if x not in freqs_table:
'''
call the function in Seq module
'''
freqs_table[x] = find(x)
hi, I want to call Seq's FMIndex.find() from an existing Python module (the python module is hard to translate to Seq Style). Is it possible to implement it ?
the code would be like: