Skip to content

Commit

Permalink
Changes .clean script to suitable python version and directories. Ver…
Browse files Browse the repository at this point in the history
…y minor comments and syntax updates to fileutil.
  • Loading branch information
MatthewRalston committed Feb 20, 2024
1 parent d920bdc commit 0869a34
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .clean_local_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ EOF



rm -rf /home/matt/.pyenv/versions/kdb/lib/python3.10/site-packages/kmerdb /home/matt/.pyenv/versions/kdb/lib/python3.10/site-packages/kmerdb-*.egg-info /ffast2/kdb/kmerdb.egg-info /ffast2/kdb/build /ffast2/kdb/dist
rm -rf /home/matt/.pyenv/versions/3.10.1/envs/kdb/lib/python3.10/site-packages/kmerdb-*
cd /ffast2/kdb/
rm -rf /home/matt/.pyenv/versions/kdb/lib/python3.11/site-packages/kmerdb /home/matt/.pyenv/versions/kdb/lib/python3.11/site-packages/kmerdb-*.egg-info /home/matt/Projects/kdb/kmerdb.egg-info /home/matt/Projects/kdb/build /home/matt/Projects/kdb/dist
rm -rf /home/matt/.pyenv/versions/3.11.7/envs/kdb/lib/python3.11/site-packages/kmerdb-*
cd /home/matt/Projects/kdb/
rm -rf dist build kmerdb.egg-info wheelhouse
cd

4 changes: 2 additions & 2 deletions kmerdb/fileutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def open(filepath, mode="r", metadata=None, sort:bool=False, slurp:bool=False):

class KDBReader(bgzf.BgzfReader):
"""
A class that reads KDB files, potentially just for accessing header metadata, or for reading the entire contents into numpy arrays.
A class that reads .kdb files, potentially just for accessing header metadata, or for reading the entire contents into numpy arrays.
:ivar filename: str
Expand Down Expand Up @@ -757,7 +757,7 @@ def slurp(self, column_dtypes:str="uint64", count_dtypes:str="uint64", frequenci

class KDBWriter(bgzf.BgzfWriter):
"""
A wrapper class around Bio.bgzf.BgzfWriter to write a kdb file to disk.
A wrapper class around Bio.bgzf.BgzfWriter to write a .kdb file to disk.
:ivar metadata: OrderedDict
:ivar filename: str
Expand Down

0 comments on commit 0869a34

Please sign in to comment.