-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathref_resolve_test_code.py
More file actions
38 lines (26 loc) · 936 Bytes
/
ref_resolve_test_code.py
File metadata and controls
38 lines (26 loc) · 936 Bytes
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
37
38
# Third party
# Local
from reference_resolver import main as rr
citation = 'Senís, Elena, et al. "CRISPR/Cas9‐mediated genome engineering: An adeno‐associated viral (AAV) vector ' + \
'toolbox. Biotechnology journal 9.11 (2014): 1402-1412.'
link = 'http://onlinelibrary.wiley.com/doi/10.1002/biot.201400046/references'
doi = '10.1002/biot.201400046'
doi = '10.1016/S0304-3991(00)00076-0'
#paper_info = rr.resolve_citation(citation)
#print(paper_info['entry'])
#print(paper_info['references'][0])
#print(paper_info.keys())
#paper_info = rr.resolve_doi(doi)
doi = '10.1038/nrg3686'
paper_info = rr.paper_info_from_doi(doi, skip_saved=True)
references = paper_info.references
#print(refs)
#print(len(refs))
'''
session = Session()
mainentry = session.query(tables.MainPaperInfo).all()
refs = session.query(tables.References).all()
mapping = session.query(tables.RefMapping).all()
'''
import pdb
pdb.set_trace()