Skip to content

Commit

Permalink
Merge pull request #227 from open2c/pkerpedjiev-patch-2
Browse files Browse the repository at this point in the history
Warn about 0 based coordinates
  • Loading branch information
nvictus committed Nov 5, 2020
2 parents 82b9939 + 03b28fd commit 84b0d51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cooler/create/_ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def _sanitize_records(
if np.any(is_neg):
err = chunk[is_neg]
raise BadInputError(
"Found an anchor position with negative value:\n{}".format(
"Found an anchor position with negative value. Make sure your coordinates are 1-based or use the --zero-based option when loading. \n{}".format(
err.head().to_csv(sep="\t")
)
)
Expand Down

0 comments on commit 84b0d51

Please sign in to comment.