Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Yoann DUFRESNE
linked reads molecule ordering
Commits
0373a992
Commit
0373a992
authored
Feb 18, 2020
by
Yoann Dufresne
Browse files
verbose: add stdout flushing for cluster usages
parent
419b3ecc
Changes
1
Hide whitespace changes
Inline
Side-by-side
deconvolution/dgraph/AbstractDGFactory.py
View file @
0373a992
import
networkx
as
nx
import
sys
from
abc
import
abstractmethod
from
multiprocessing
import
Pool
,
Value
...
...
@@ -13,6 +14,7 @@ def process_node(factory, node):
if
factory
.
verbose
:
print
(
f
"
{
my_value
}
: Generating d-graphs"
)
sys
.
stdout
.
flush
()
# udg generation
neighbors
=
list
(
factory
.
graph
.
neighbors
(
node
))
...
...
@@ -22,12 +24,14 @@ def process_node(factory, node):
if
factory
.
verbose
:
print
(
f
"
{
my_value
}
: d-graphs generated, starting filtering"
)
print
(
f
"
{
my_value
}
:
{
len
(
dgs
)
}
graphs to filter"
)
sys
.
stdout
.
flush
()
# udg domination filtering
dgs
=
AbstractDGIndex
.
filter_entry
(
dgs
)
if
factory
.
verbose
:
print
(
f
"
{
my_value
}
(
{
factory
.
nb_nodes
}
) terminated"
)
sys
.
stdout
.
flush
()
return
node
,
dgs
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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