Skip to content

Commit

Permalink
removed pins
Browse files Browse the repository at this point in the history
  • Loading branch information
Acribbs committed Apr 1, 2024
1 parent eda64e5 commit b427c9d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cgat/IndexedFasta.py
Original file line number Diff line number Diff line change
Expand Up @@ -901,15 +901,15 @@ def getSequence(self,

if self.mNoSeek:
# read directly from position
p.fromstring(
p.frombytes(
self.mDatabaseFile.read(block_size, data[3],
first_pos, last_pos))
else:
first_pos += pos_seq
last_pos += pos_seq

self.mDatabaseFile.seek(first_pos)
p.fromstring(self.mDatabaseFile.read(last_pos - first_pos))
p.frombytes(self.mDatabaseFile.read(last_pos - first_pos))

if str(strand) in ("-", "0", "-1"):
p = AString(Genomics.reverse_complement(str(p)))
Expand Down
2 changes: 1 addition & 1 deletion cgat/SequenceProperties.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def loadSequence(self, sequence, seqtype="na"):
# map to printable letters: hid has length 22, so the padded '=' are
# truncated. You have to add them, if you ever want to decode,
# but who would do such a thing :=)
r = base64.encodestring(h)[0:22].decode("ascii")
r = base64.encodebytes(h)[0:22].decode("ascii")

# finally substitute some characters:
# '/' for '_', so we have legal file names
Expand Down
1 change: 0 additions & 1 deletion conda/environments/cgat-apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ dependencies:
- pybigwig
- pysam>=0.18.0
- pyyaml
- pytest<=5.4.3
- quicksect
- rdflib
- scikit-learn
Expand Down

0 comments on commit b427c9d

Please sign in to comment.