Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
jdcla authored and jdcla committed Nov 26, 2024
1 parent 9c899b7 commit a1adb2b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ install_requires =
torchmetrics >= 1.1.2
performer-pytorch == 1.1.4
local-attention == 1.7.1
h5py == 3.11.0
h5py >= 3.11.0
numpy >= 1.26.4
scipy >= 1.13.0
pandas >= 2.2.2
Expand All @@ -29,7 +29,7 @@ install_requires =
polars >= 0.20.19
tqdm >= 4.66.2
pyfaidx == 0.8.1.1
gtfparse @ git+https://github.com/TRISTAN-ORF/gtfparse.git#egg=gtfparse
gtfparse @ git+https://github.com/TRISTAN-ORF/gtfparse.git@dev#egg=gtfparse

[options.entry_points]
console_scripts =
Expand Down
4 changes: 3 additions & 1 deletion transcript_transformer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"TGT": "C",
"TGA": "_",
"TGG": "W",
"NNN": "_",
"NNN": "X",
}

PROT_IDX_DICT = {
Expand All @@ -90,6 +90,8 @@
"W": 18,
"Y": 19,
"V": 20,
"_": 21,
"X": 22,
}

DNA_IDX_DICT = {
Expand Down
1 change: 0 additions & 1 deletion transcript_transformer/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import h5max
import pyfaidx
from gtfparse import read_gtf

from .util_functions import vec2DNA, construct_prot, time, slice_gen, prot2vec

REQ_HEADERS = [
Expand Down
6 changes: 3 additions & 3 deletions transcript_transformer/util_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ def construct_prot(seq):

string = ""
for cdn in cdn_seq:
if "N" in cdn:
string += "_"
else:
if cdn in CDN_PROT_DICT.keys():
string += CDN_PROT_DICT[cdn]
else:
string += "X"

return string, has_stop, stop_codon

Expand Down

0 comments on commit a1adb2b

Please sign in to comment.