projects
/
htsworkflow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
886aaac
)
Add links to libraries and submission to data loaded from dcc indes files
author
Diane Trout
<diane@caltech.edu>
Fri, 22 Jun 2012 00:23:19 +0000
(17:23 -0700)
committer
Diane Trout
<diane@caltech.edu>
Fri, 22 Jun 2012 00:23:19 +0000
(17:23 -0700)
encode_submission/encode_find.py
patch
|
blob
|
history
diff --git
a/encode_submission/encode_find.py
b/encode_submission/encode_find.py
index 9b65fdef57f58f1635e6d1dea7dc84023bd6bc76..0495d142041e90dc2e9c9baaa91e2740007a69aa 100644
(file)
--- a/
encode_submission/encode_find.py
+++ b/
encode_submission/encode_find.py
@@
-538,6
+538,8
@@
def load_encodedcc_files(model, genome, composite):
if file_index is None:
return
if file_index is None:
return
+ lib_term = submissionOntology['library_urn']
+ sub_term = submissionOntology['submission_urn']
for filename, attributes in file_index.items():
s = RDF.Node(RDF.Uri(filename))
model.add_statement(
for filename, attributes in file_index.items():
s = RDF.Node(RDF.Uri(filename))
model.add_statement(
@@
-546,6
+548,13
@@
def load_encodedcc_files(model, genome, composite):
p = RDF.Node(DCC_NS[name])
o = RDF.Node(value)
model.add_statement(RDF.Statement(s,p,o))
p = RDF.Node(DCC_NS[name])
o = RDF.Node(value)
model.add_statement(RDF.Statement(s,p,o))
+ if name.lower() == 'labexpid':
+ model.add_statement(
+ RDF.Statement(s, lib_term, LIBRARY_NS[value+'/']))
+ elif name.lower() == 'subid':
+ sub_url = RDF.Uri(submission_view_url(value))
+ model.add_statement(
+ RDF.Statement(s, sub_term, sub_url))
def load_library_detail(model, libraryUrn):
def load_library_detail(model, libraryUrn):