Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
VEBER Philippe
codepi
Commits
a4280494
Commit
a4280494
authored
Jun 06, 2019
by
Carine Rey
Committed by
Philippe Veber
Sep 20, 2019
Browse files
add indel cols if not pcoc
parent
b034bd73
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
lib/scripts/merge_det_results.py
lib/scripts/merge_det_results.py
+8
-2
No files found.
lib/scripts/merge_det_results.py
View file @
a4280494
...
...
@@ -109,13 +109,19 @@ if args.pcoc :
if
args
.
pcoc_gamma
:
df_pcoc_gamma
=
pd
.
read_csv
(
args
.
pcoc_gamma
,
sep
=
"
\t
"
)
df_pcoc_gamma
=
df_pcoc_gamma
[[
'Sites'
,
'PCOC'
,
'PC'
,
'OC'
]]
col
=
[
'Sites'
,
'PCOC'
,
'PC'
,
'OC'
]
if
not
args
.
pcoc
:
col
.
extend
([
"Indel_prop"
,
"Indel_prop(ConvLeaves)"
])
df_pcoc_gamma
=
df_pcoc_gamma
[
col
]
df_pcoc_gamma
.
rename
(
columns
=
{
'PCOC'
:
'PCOC_gamma'
,
'PC'
:
'PC_gamma'
,
'OC'
:
'OC_gamma'
},
inplace
=
True
)
if
args
.
pcoc_C60
:
df_pcoc_C60
=
pd
.
read_csv
(
args
.
pcoc_C60
,
sep
=
"
\t
"
)
df_pcoc_C60
=
df_pcoc_C60
[[
'Sites'
,
'PCOC'
,
'PC'
,
'OC'
]]
col
=
[
'Sites'
,
'PCOC'
,
'PC'
,
'OC'
]
if
not
args
.
pcoc
and
not
args
.
pcoc_gamma
:
col
.
extend
([
"Indel_prop"
,
"Indel_prop(ConvLeaves)"
])
df_pcoc_C60
=
df_pcoc_C60
[
col
]
df_pcoc_C60
.
rename
(
columns
=
{
'PCOC'
:
'PCOC_C60'
,
'PC'
:
'PC_C60'
,
'OC'
:
'OC_C60'
},
inplace
=
True
)
...
...
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