Skip to content

Commit

Permalink
fix region import ambiguous names
Browse files Browse the repository at this point in the history
  • Loading branch information
Camiel Mannens committed Sep 18, 2024
1 parent 9f737da commit a79bab9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ node_modules
.DS_Store
._.DS_Store
docs/tutorials/mouse_biccn.ipynb
docs/tutorials/.ipynb_checkpoints
2 changes: 1 addition & 1 deletion src/crested/_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def _read_consensus_regions(
) -> pd.DataFrame:
"""Read consensus regions BED file and filter out regions not within chromosomes."""
consensus_peaks = pd.read_csv(
regions_file, sep="\t", header=None, usecols=[0, 1, 2]
regions_file, sep="\t", header=None, usecols=[0, 1, 2], dtype={0: str, 1: 'Int32', 2: 'Int32'}
)
consensus_peaks["region"] = (
consensus_peaks[0].astype(str)
Expand Down

0 comments on commit a79bab9

Please sign in to comment.