diff --git a/pycircos/pycircos.py b/pycircos/pycircos.py index 583597c..213b86f 100644 --- a/pycircos/pycircos.py +++ b/pycircos/pycircos.py @@ -1112,14 +1112,14 @@ def chord_plot(self, start_list, end_list, facecolor=None, edgecolor=None, linew start1 = self._garc_dict[garc_id1].coordinates[0] end1 = self._garc_dict[garc_id1].coordinates[-1] - size1 = self._garc_dict[garc_id1].size - 1 + size1 = self._garc_dict[garc_id1].size sstart = start1 + ((end1-start1) * start_list[1]/size1) send = start1 + ((end1-start1) * start_list[2]/size1) stop = start_list[3] start2 = self._garc_dict[garc_id2].coordinates[0] end2 = self._garc_dict[garc_id2].coordinates[-1] - size2 = self._garc_dict[garc_id2].size - 1 + size2 = self._garc_dict[garc_id2].size ostart = start2 + ((end2-start2) * end_list[1]/size2) oend = start2 + ((end2-start2) * end_list[2]/size2) etop = end_list[3]