geney 1.3.20__py2.py3-none-any.whl → 1.3.22__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 +1 -2
- {geney-1.3.20.dist-info → geney-1.3.22.dist-info}/METADATA +1 -1
- {geney-1.3.20.dist-info → geney-1.3.22.dist-info}/RECORD +6 -6
- {geney-1.3.20.dist-info → geney-1.3.22.dist-info}/WHEEL +0 -0
- {geney-1.3.20.dist-info → geney-1.3.22.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
|
@@ -224,7 +224,7 @@ def find_transcript_missplicing(mut_id, transcript=None, threshold=0.5, engine='
|
|
|
224
224
|
mutations = [MutSeqMat.from_mutid(m) for m in mut_id.split('|')]
|
|
225
225
|
mutations = [m for m in mutations if m in reference_transcript]
|
|
226
226
|
if len(mutations) == 0:
|
|
227
|
-
return {'missed_acceptors': {}, 'missed_donors': {}, 'discovered_acceptors': {}, 'discovered_donors': {}}
|
|
227
|
+
return Missplicing({'missed_acceptors': {}, 'missed_donors': {}, 'discovered_acceptors': {}, 'discovered_donors': {}})
|
|
228
228
|
|
|
229
229
|
center = np.mean([m.indices[0] for m in mutations]) // 1
|
|
230
230
|
for mutation in mutations:
|
|
@@ -365,7 +365,6 @@ def find_transcript_missplicing_seqs(ref_seq, var_seq, donors, acceptors, thresh
|
|
|
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
|
-
print(missplicing)
|
|
369
368
|
return Missplicing(missplicing, threshold=threshold)
|
|
370
369
|
|
|
371
370
|
|
|
@@ -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=CbULBIj9fZMNDjb6rFWv8CemqBRStpwAnuRYEHVSro8,35551
|
|
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.22.dist-info/METADATA,sha256=qEvAuYy4vD8BV3s8-S5yF02j4jbsKqpxcd-sxpnDax0,971
|
|
29
|
+
geney-1.3.22.dist-info/WHEEL,sha256=AHX6tWk3qWuce7vKLrj7lnulVHEdWoltgauo8bgCXgU,109
|
|
30
|
+
geney-1.3.22.dist-info/top_level.txt,sha256=O-FuNUMb5fn9dhZ-dYCgF0aZtfi1EslMstnzhc5IIVo,6
|
|
31
|
+
geney-1.3.22.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|