Commit 97c7de52 authored by Carine Rey's avatar Carine Rey
Browse files

fix index error

parent c120a7d6
...@@ -198,8 +198,8 @@ for i in range(nb_bins): ...@@ -198,8 +198,8 @@ for i in range(nb_bins):
MESSAGE("Writing pairs to " + param(filename_out)) MESSAGE("Writing pairs to " + param(filename_out))
# columns[0] = "#p1_0" # columns[0] = "#p1_0"
#pairs.iloc[chunks[i]].to_csv(filename_out, sep='\t', index=False, header=columns) #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]["p1"] = pair_bins[i]["p1"].astype(int) + 1
pair_bins[i]["p2"] = pair_bins[i]["p2"].astype(int) pair_bins[i]["p2"] = pair_bins[i]["p2"].astype(int) + 1
pair_bins[i].to_csv(filename_out, sep='\t', index=False, header=False) pair_bins[i].to_csv(filename_out, sep='\t', index=False, header=False)
MESSAGE("Done :)") MESSAGE("Done :)")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment