geney 1.3.19__py2.py3-none-any.whl → 1.3.21__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of geney might be problematic. Click here for more details.
- geney/SeqMats.py +6 -0
- geney/splicing_utils.py +5 -8
- {geney-1.3.19.dist-info → geney-1.3.21.dist-info}/METADATA +1 -1
- {geney-1.3.19.dist-info → geney-1.3.21.dist-info}/RECORD +6 -6
- {geney-1.3.19.dist-info → geney-1.3.21.dist-info}/WHEEL +0 -0
- {geney-1.3.19.dist-info → geney-1.3.21.dist-info}/top_level.txt +0 -0
geney/SeqMats.py
CHANGED
|
@@ -213,6 +213,7 @@ class SeqMat:
|
|
|
213
213
|
|
|
214
214
|
|
|
215
215
|
def _rel_index(self, pos):
|
|
216
|
+
pos = int(pos)
|
|
216
217
|
if pos in self.indices:
|
|
217
218
|
return np.where(self.seqmat[self.ROW_INDS, :] == pos)[0][0]
|
|
218
219
|
else:
|
|
@@ -293,6 +294,11 @@ class SeqMat:
|
|
|
293
294
|
return self.seqmat[self.ROW_INDS, self.seqmat[self.ROW_SEQ, :] != 5] + (
|
|
294
295
|
self.seqmat[self.ROW_SUPERINDS, self.seqmat[self.ROW_SEQ, :] != 5] / 10)
|
|
295
296
|
|
|
297
|
+
@property
|
|
298
|
+
def raw_indices(self):
|
|
299
|
+
return self.seqmat[self.ROW_INDS, :] + (self.seqmat[self.ROW_SUPERINDS, :] / 10)
|
|
300
|
+
|
|
301
|
+
|
|
296
302
|
def mutate(self, mut, inplace=False):
|
|
297
303
|
"""
|
|
298
304
|
Apply mutations to the sequence matrix.
|
geney/splicing_utils.py
CHANGED
|
@@ -363,22 +363,19 @@ def find_transcript_missplicing_seqs(ref_seq, var_seq, donors, acceptors, thresh
|
|
|
363
363
|
missplicing = {'missed_acceptors': dap, 'missed_donors': ddp, 'discovered_acceptors': iap,
|
|
364
364
|
'discovered_donors': idp}
|
|
365
365
|
missplicing = {outk: {float(k): v for k, v in outv.items()} for outk, outv in missplicing.items()}
|
|
366
|
-
|
|
366
|
+
missplicing = {outk: {int(k) if k.is_integer() else k: v for k, v in outv.items()} for outk, outv in
|
|
367
367
|
missplicing.items()}
|
|
368
|
-
return Missplicing(
|
|
368
|
+
return Missplicing(missplicing, threshold=threshold)
|
|
369
369
|
|
|
370
370
|
|
|
371
371
|
def process_pairwise_epistasis(mids, engine='pangolin', fprint=False, db=None):
|
|
372
372
|
results = []
|
|
373
373
|
for mid in mids:
|
|
374
374
|
m1, m2 = mid.split('|')
|
|
375
|
-
# missplicing1 = find_transcript_missplicing(m1, threshold=0.25, engine=engine)
|
|
376
|
-
# missplicing2 = find_transcript_missplicing(m2, threshold=0.25, engine=engine)
|
|
377
|
-
# missplicing_both = find_transcript_missplicing(mid, threshold=0.25, engine=engine)
|
|
378
375
|
|
|
379
|
-
missplicing1 =
|
|
380
|
-
missplicing2 =
|
|
381
|
-
missplicing_both =
|
|
376
|
+
missplicing1 = find_transcript_missplicing(m1, engine=engine, db=db)
|
|
377
|
+
missplicing2 = find_transcript_missplicing(m2, engine=engine, db=db)
|
|
378
|
+
missplicing_both = find_transcript_missplicing(mid, engine=engine, db=db)
|
|
382
379
|
|
|
383
380
|
if fprint:
|
|
384
381
|
print(missplicing1)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
geney/Fasta_segment.py,sha256=99HxNGNh_MfdVW6hhtlb1vOn7eSmT7oFoEfHDFMxG8w,11275
|
|
2
2
|
geney/Gene.py,sha256=JGWtfA6-d1W3I9YRASwaF8vaZ6CCuY0KEawQNdloIqY,6259
|
|
3
|
-
geney/SeqMats.py,sha256
|
|
3
|
+
geney/SeqMats.py,sha256=-Wx9fCSTZL98UoTKZGj6fKDnT4zsJHFuvuHabSoXTU0,18712
|
|
4
4
|
geney/Transcript.py,sha256=eRZXVVxDVBbv0l385bnAOBFRBSzBwppXcbBq8KXkwlo,14443
|
|
5
5
|
geney/__init__.py,sha256=eBdDl42N6UhcYeZDjOnv199Z88fI5_8Y6xW8447OKXM,755
|
|
6
6
|
geney/_mutation_utils.py,sha256=dHssUsnii_mf-wuRoMmF13UlD7k3ml_VwQMItTYnXpU,1132
|
|
@@ -16,7 +16,7 @@ geney/pangolin_utils.py,sha256=i5j5vEMCWOTIa1mRP2377BAhlUFZjHBzTQBips4lA_4,2934
|
|
|
16
16
|
geney/power_utils.py,sha256=MehZFUdkJ2EFUot709yPEDxSkXmH5XevMebX2HD768A,7330
|
|
17
17
|
geney/seqmat_utils.py,sha256=wzb3PX5it5bpIFQvcxyzlxfhoJTbHHbsjg0rzh05iVs,19753
|
|
18
18
|
geney/spliceai_utils.py,sha256=PFIhTK8Ihrj-cv5tgRN0UFPYEmC4uxtqXSP9bBLnZRM,3077
|
|
19
|
-
geney/splicing_utils.py,sha256=
|
|
19
|
+
geney/splicing_utils.py,sha256=FLBmVglyALQbu3SEBq9VaKtRjqWabudvTz0jvPtJEuA,35538
|
|
20
20
|
geney/survival_utils.py,sha256=KnAzEviMuXh6SnVXId9PgsFLSbgkduTvYoIthxN7FPA,6886
|
|
21
21
|
geney/tcga_utils.py,sha256=D_BNHm-D_K408dlcJm3hzH2c6QNFjQsKvUcOPiQRk7g,17612
|
|
22
22
|
geney/tis_utils.py,sha256=2makfGfVlDFVIbxzXE85AY9jmAjcNmxyIAxjvkRA5LY,7396
|
|
@@ -25,7 +25,7 @@ geney/translation_initiation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NM
|
|
|
25
25
|
geney/translation_initiation/tis_utils.py,sha256=AF3siFjuQH-Rs44EV-80zHdbxRMvN4woLFSHroWIETc,4448
|
|
26
26
|
geney/translation_initiation/resources/kozak_pssm.json,sha256=pcd0Olziutq-6H3mFWDCD9cujQ_AlZO-iiOvBl82hqE,1165
|
|
27
27
|
geney/translation_initiation/resources/tis_regressor_model.joblib,sha256=IXb4DUDhJ5rBDKcqMk9zE3ECTZZcdj7Jixz3KpoZ7OA,2592025
|
|
28
|
-
geney-1.3.
|
|
29
|
-
geney-1.3.
|
|
30
|
-
geney-1.3.
|
|
31
|
-
geney-1.3.
|
|
28
|
+
geney-1.3.21.dist-info/METADATA,sha256=I-cnugoCjWnQJSG7GVvr_xD8D3mPgIdLADpAvBsSJfk,971
|
|
29
|
+
geney-1.3.21.dist-info/WHEEL,sha256=AHX6tWk3qWuce7vKLrj7lnulVHEdWoltgauo8bgCXgU,109
|
|
30
|
+
geney-1.3.21.dist-info/top_level.txt,sha256=O-FuNUMb5fn9dhZ-dYCgF0aZtfi1EslMstnzhc5IIVo,6
|
|
31
|
+
geney-1.3.21.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|