-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemp.py
36 lines (25 loc) · 1009 Bytes
/
temp.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import excel2flapjack.main as e2f
import excel2sbol.converter as conv
import tempfile
import requests
import os
fj_url = "flapjack.rudge-lab.org:8000"
fj_user = "sai1"
fj_pass = "123"
sbj_pass = '456'
sbh_user = 'sai2'
direct = os.path.split(__file__)[0]
file_path = os.path.join(direct, 'flapjack_excel_converter_v028.xlsx')
file_path_out = os.path.join(direct, 'test.xml')
# upload the excel file to flapjack and get hash map back
hash_map = e2f.flapjack_upload(fj_url, fj_user, fj_pass, file_path)
print(hash_map)
# convert the excel file to SBOL
# use excel2sbol - could ask for an update that just gives the doc back rather than the file
conv.converter(file_path, file_path_out)
# Add flapjack annotations to the SBOL
# use pysbol2 documentation: https://pysbol.readthedocs.io/en/stable/introduction.html
# Upload the file to SBH
# documentation: https://wiki.synbiohub.org/api-docs/#submit and https://wiki.synbiohub.org/api-docs/#login
# Pull uris from synbiohub
# Add uris to flapjack