jzhoulab / orca

sequence-based prediction of multiscale genome structure from kilobase to whole-chromosome scale
Other
70 stars 21 forks source link

Add process_seqstr in orca_predict.py #6

Closed gr-grey closed 10 months ago

gr-grey commented 10 months ago

prcoess_seqstr(seqstr_input, file=None, mpos=None, custom_models=None, use_cuda=True)

Need Seqstr package to use the function.

Try import seqstr in the beginning, if package not installed, calling the function will invoke ImportError.

Tested 3 seqstrs with 1, 2, and 3 segments, all generated pdf files

teststr = '[hg38]chr9:94904000-126904000 +'
testout = process_region_seqstr(teststr, file="seqstr_test1")
teststr = '[hg38]chr9:94904000-100904000 +; chr7:5480600-32480600 -'
testout = process_region_seqstr(teststr, file="seqstr_test2")
teststr = '[hg38]chr9:94904000-100904000 +; chr7:5480600-13480600 -; chr1:10904000-75904000 +'
testout = process_region_seqstr(teststr, file="seqstr_test3")