Skip to content

Commit

Permalink
Merge pull request #20 from aertslab/bugfix
Browse files Browse the repository at this point in the history
fix region import ambiguous names
  • Loading branch information
LukasMahieu authored Sep 18, 2024
2 parents 9f737da + a79bab9 commit b0ed978
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 b0ed978

Please sign in to comment.