Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
clowdflows
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Alain Shakour
clowdflows
Commits
001788ea
Commit
001788ea
authored
Jul 23, 2013
by
vpodpecan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added triplet to text export for bio3graph
parent
8102561b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
workflows/bio3graph/library.py
workflows/bio3graph/library.py
+8
-0
No files found.
workflows/bio3graph/library.py
View file @
001788ea
...
...
@@ -122,6 +122,14 @@ def bio3graph_construct_triplet_network(input_dict):
return
{
'network_object'
:
graph
}
def
bio3graph_export_triplets_to_text
(
input_dict
):
from
triplet_extractor
import
tripletExtraction
as
te
triplets
=
input_dict
[
'triplets'
]
gk
=
te
.
TripletGraphConstructor
(
triplets
)
ttext
=
gk
.
exportText
()
return
{
'triplets_as_text'
:
ttext
}
def
bio3graph_networkx_to_biomine
(
input_dict
):
from
triplet_extractor
import
graph_operations
as
gop
nwx
=
input_dict
[
'network'
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment