Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ChIA-PET_network
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LBMC
ReGArDS
ChIA-PET_network
Commits
3edbe8a3
Commit
3edbe8a3
authored
Jan 19, 2021
by
nfontrod
Browse files
Options
Downloads
Patches
Plain Diff
src/find_interaction_cluster/community_finder.py: call get_community -> get_communities_basefile
parent
b76ca88f
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/find_interaction_cluster/community_finder.py
+3
-5
3 additions, 5 deletions
src/find_interaction_cluster/community_finder.py
with
3 additions
and
5 deletions
src/find_interaction_cluster/community_finder.py
+
3
−
5
View file @
3edbe8a3
...
...
@@ -11,7 +11,7 @@ import networkx as nx
import
numpy
as
np
from
networkx.algorithms
import
community
import
sqlite3
from
.config
import
ConfigGraph
,
get_communities
from
.config
import
ConfigGraph
,
get_communities
_basefile
from
..nt_composition.make_nt_correlation
import
get_project_colocalisation
from
..logging_conf
import
logging_def
import
pandas
as
pd
...
...
@@ -19,11 +19,9 @@ import logging
import
plotly.graph_objects
as
go
import
plotly
from
pathlib
import
Path
from
typing
import
Tuple
,
Dict
,
List
from
typing
import
Tuple
,
Dict
import
matplotlib.cm
as
cm
from
matplotlib.colors
import
to_rgba
from
itertools
import
product
import
multiprocessing
as
mp
import
json
import
subprocess
as
sp
...
...
@@ -106,7 +104,7 @@ def find_communities(graph: nx.Graph, project: str,
cmd
=
f
"
mpirun -np 1
{
ConfigGraph
.
get_hipmcl_prog
()
}
-M
{
outfile
}
"
\
f
"
-I 1.5 -per-process-mem 50 -o
{
result_file
}
"
sp
.
check_call
(
cmd
,
shell
=
True
,
stderr
=
sp
.
STDOUT
)
communities
=
get_communities
(
result_file
)
communities
=
get_communities
_basefile
(
result_file
)
dic_community
=
{}
cov
=
round
(
community
.
coverage
(
graph
,
communities
),
2
)
modularity
=
community
.
modularity
(
graph
,
communities
,
weight
=
'
X
'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
sign in
to comment