Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Louis BECQUEY
/
RNANet
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
Louis BECQUEY
2020-03-28 12:31:39 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b413f51861a55c657e610c9e8d180b6013d0dcba
b413f518
1 parent
a6ac991b
Renamed some descriptors to match the paper
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
RNAnet.py
RNAnet.py
View file @
b413f51
...
...
@@ -397,7 +397,7 @@ class Chain:
df
[
'paired'
]
=
paired
df
[
'pair_type_LW'
]
=
pair_type_LW
df
[
'pair_type_DSSR'
]
=
pair_type_DSSR
df
[
'
N
interact'
]
=
interacts
df
[
'
nb_
interact'
]
=
interacts
df
=
df
.
drop
([
'C5prime_xyz'
,
'P_xyz'
,
'nt_id'
],
axis
=
1
)
# remove now useless descriptors
if
self
.
reversed
:
...
...
@@ -545,7 +545,7 @@ class Chain:
point
[
9
,
i
]
=
temp_freqs
[
3
,
i
]
point
[
10
,
i
]
=
temp_freqs
[
4
,
i
]
self
.
data
=
pd
.
concat
([
self
.
data
,
pd
.
DataFrame
(
point
.
T
,
columns
=
[
"position"
,
"is_A"
,
"is_C"
,
"is_G"
,
"is_U"
,
"is_other"
,
"freq_A"
,
"freq_C"
,
"freq_G"
,
"freq_U"
,
"freq_other"
])],
axis
=
1
)
self
.
data
=
pd
.
concat
([
self
.
data
,
pd
.
DataFrame
(
point
.
T
,
columns
=
[
"
nt_
position"
,
"is_A"
,
"is_C"
,
"is_G"
,
"is_U"
,
"is_other"
,
"freq_A"
,
"freq_C"
,
"freq_G"
,
"freq_U"
,
"freq_other"
])],
axis
=
1
)
# reorder columns:
cols
=
[
# 1D structure descriptors
'index_chain'
,
'nt_resnum'
,
'position'
,
...
...
@@ -554,7 +554,7 @@ class Chain:
'freq_A'
,
'freq_C'
,
'freq_G'
,
'freq_U'
,
'freq_other'
,
# 2D structure descriptors
'dbn'
,
'paired'
,
'
N
interact'
,
'dbn'
,
'paired'
,
'
nb_
interact'
,
'pair_type_LW'
,
'pair_type_DSSR'
,
# 3D strcuture descriptors
...
...
Please
register
or
login
to post a comment