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
97c7de52
Commit
97c7de52
authored
Aug 08, 2018
by
Carine Rey
Browse files
fix index error
parent
c120a7d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lib/scripts/generate_pairs.py
lib/scripts/generate_pairs.py
+2
-2
No files found.
lib/scripts/generate_pairs.py
View file @
97c7de52
...
...
@@ -198,8 +198,8 @@ for i in range(nb_bins):
MESSAGE
(
"Writing pairs to "
+
param
(
filename_out
))
# columns[0] = "#p1_0"
#pairs.iloc[chunks[i]].to_csv(filename_out, sep='\t', index=False, header=columns)
pair_bins
[
i
][
"p1"
]
=
pair_bins
[
i
][
"p1"
].
astype
(
int
)
pair_bins
[
i
][
"p2"
]
=
pair_bins
[
i
][
"p2"
].
astype
(
int
)
pair_bins
[
i
][
"p1"
]
=
pair_bins
[
i
][
"p1"
].
astype
(
int
)
+
1
pair_bins
[
i
][
"p2"
]
=
pair_bins
[
i
][
"p2"
].
astype
(
int
)
+
1
pair_bins
[
i
].
to_csv
(
filename_out
,
sep
=
'
\t
'
,
index
=
False
,
header
=
False
)
MESSAGE
(
"Done :)"
)
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