forked from CSUBioGroup/GraphLncLoc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
predict.py
13 lines (10 loc) · 1.07 KB
/
predict.py
1
2
3
4
5
6
7
8
9
10
11
12
13
from models.lncRNA_lib import *
mapLocation={'cuda:0':'cpu', 'cuda:1':'cpu'}
GraphLncLoc =[]
for i in range(1,6):
GraphLncLoc.append(lncRNALocalizer(f"checkpoints/Final_model/fold{i}.pkl", map_location=mapLocation))
def lncRNA_loc_predict(lncRNA):
return vote_predict(GraphLncLoc,lncRNA.upper())
if __name__=="__main__":
sequence="ACCAUUUUCAUAGAAUCAUUAUGAUGAUUAACUAAAUUGUGGAUAAAUAAAAACCAAAAUACCAGUGGAAUGAAAUAUUGUCAUUACUUGGCCAUGAGCUUUUAAGUGUGUGUGUCUAUGUUUCUAGCGGGGCACAUGCCUGUAAUCAUAGCUCUUGGUAGGAAGUGACAAGAUUAGGCCUUGAGUAGAGCAAGUUUGAGGCUAAUAUGGGCUGUGUGAGACACUAUCUCAAAGCAAACAGUAUGUUCCUGAGAUAGGGCUGUAACUCAAUGACAAAGCACUGUCUAAUGUGCGAAGCCCCCCAAGUUCAAUCCACAGCCACUCAGAGGCUCCAGAGUCCUCCCUUCUACUCCUAUUGAGUACAAGUUUCAUUAGAGGUGAUACACACCAUUUUUCCAAAUGGCUAAUUGUGCCUUUUACAUAUAGUUGAUGAUAAAAAUACAUAUUGUGAAAUAAAAUAUUGUAUAUAUGUGUGCAUGCACACAUCUACUGUUCUGAACAGAGAACCCAGGACUUUAUGAAGGACUUUAUUAACUAUUGCCCCUAAGCCAUGAAAGAUAUUUCUUUGACUGGCAUAUUCGCAGCAUGAUUUUUCCACUCUUCUGCACUCUUCAACUUGUGGUUCGUGUAUGCAUGUGUGUACAAACACACAUACACAUGCAGUGUAGAGGUGUCACUAUUUUGACCAGGCUCGUCU"
print(lncRNA_loc_predict(sequence))