Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Ludovic PLATON
/
IRSOM
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Ludovic PLATON
2018-05-09 14:57:06 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ec68c62b75abb83fa75ead5815f0d13c2afe65e8
ec68c62b
1 parent
12e17b2a
Fixing plot method for rejected transcript
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
scripts/SLSOM/util.py
scripts/predict.py
scripts/SLSOM/util.py
View file @
ec68c62
...
...
@@ -45,8 +45,7 @@ def import_ncRNA(path):
'''
Plot function
'''
def
plot_repartition
(
data
,
m
,
n
,
name
):
labels_names
=
[
str
(
x
)
for
x
in
data
[
0
]]
def
plot_repartition
(
data
,
m
,
n
,
name
,
labels_names
):
repartition
=
data
[
1
]
dico
=
[]
N
=
np
.
sum
(
repartition
)
...
...
scripts/predict.py
View file @
ec68c62
...
...
@@ -37,7 +37,7 @@ def save_pred(som,data,data_names,y,proba,bmu,path):
np
.
savetxt
(
path
+
"result.txt"
,
res
,
header
=
"Sequence_name
\t
BMU
\t
label"
+
""
.
join
([
"
\t
proba_class_"
+
str
(
i
)
for
i
in
range
(
proba
.
shape
[
1
])]),
delimiter
=
"
\t
"
,
fmt
=
"
%
s"
)
rep
,
_
=
som
.
repartition_map
(
data
,
y
)
plot_repartition
(
rep
,
som
.
dim
[
0
],
som
.
dim
[
1
],
path
+
"plot_repartition"
)
plot_repartition
(
rep
,
som
.
dim
[
0
],
som
.
dim
[
1
],
path
+
"plot_repartition"
,
y_label
)
plot_density
(
np
.
array
(
y_label
),
proba
,
path
+
"plot_density.png"
)
def
main
():
...
...
Please
register
or
login
to post a comment