geney 1.2.42__py2.py3-none-any.whl → 1.2.44__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/oncosplice.py CHANGED
@@ -478,7 +478,7 @@ async def oncosplice_prototype(mut_id, splicing_threshold=0.5, protein_coding=Tr
478
478
  assert len(ref_protein) == len(
479
479
  cons_vector), f"Protein ({len(ref_protein)}) and conservation vector ({len(cons_vector)} must be same length."
480
480
 
481
- missplicing = Missplicing(find_transcript_missplicing(transcript, mutations, engine=engine),
481
+ missplicing = Missplicing(find_transcript_missplicing(transcript, mutations, engine=engine, threshold=splicing_threshold),
482
482
  threshold=splicing_threshold)
483
483
  for mutation in mutations:
484
484
  transcript.pre_mrna += mutation
@@ -501,17 +501,21 @@ async def oncosplice_prototype(mut_id, splicing_threshold=0.5, protein_coding=Tr
501
501
  cons_vector))
502
502
 
503
503
  out = domains_df.apply(lambda row: inspect_domain(row, modified_positions, cons_vector), axis=1)
504
- domains_affected = '+'.join([f'{a}:{b}' for a, b in list(zip(out.domain_identifier, out.score))])
504
+ domains_affected = '+'.join([f'{a}:{round(b, 3)}' for a, b in list(zip(out.domain_identifier, out.score))])
505
505
 
506
506
  report = OncospliceAnnotator(reference_transcript, transcript, mutation)
507
507
  report['mut_id'] = mut_id
508
508
  report['oncosplice_score'] = affected_cons_scores
509
+ report['cons_available'] = transcript.cons_available
510
+ report['transcript_id'] = transcript.transcript_id
509
511
  report['percentile'] = percentile
510
512
  report['isoform_id'] = i
511
513
  report['isoform_prevalence'] = new_boundaries['path_weight']
512
514
  report['full_missplicing'] = missplicing.aberrant_splicing
513
515
  report['missplicing'] = max(missplicing)
514
- report['domains_affected'] = domains_affected
516
+ report['domains'] = domains_affected
517
+ report['max_domain_score'] = out.score.max()
518
+
515
519
  report['reference_resemblance'] = reference_gene_proteins.get(transcript.protein, None)
516
520
  results.append(pd.Series(report))
517
521
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: geney
3
- Version: 1.2.42
3
+ Version: 1.2.44
4
4
  Summary: A Python package for gene expression modeling.
5
5
  Home-page: https://github.com/nicolaslynn/geney
6
6
  Author: Nicolas Lynn
@@ -6,7 +6,7 @@ geney/graphic_utils.py,sha256=oMsBpB9YeEn96gGpKh4MmtagJffWZbk-xPrIwHvkFhA,11016
6
6
  geney/gtex_utils.py,sha256=asL2lHyU5KsbWpV096vkf1Ka7hSo_RRfZqw7p5nERmE,1919
7
7
  geney/immune_utils.py,sha256=ZRni5ttrhpYBnmNr0d0ZatIbNPYs4nmQuoUO00SpsS4,5271
8
8
  geney/mutation_utils.py,sha256=C_kv2MB_L8LlhX3W2ooXjJ3uDoJ8zX1WeDtZKoBZJkI,1547
9
- geney/oncosplice.py,sha256=vbSmOz3kHFOqJK_qTzWGxKb-FQM2FMZplvz_pbkQGls,23227
9
+ geney/oncosplice.py,sha256=Tmhkswohr6lcagpci26yms_XyXU14V6MqsRcV1XvQaI,23444
10
10
  geney/pangolin_utils.py,sha256=lLmnjJdJjqwWS85-1jlPLIjD2z14sWjzU87hS-8xxpQ,2873
11
11
  geney/power_utils.py,sha256=MehZFUdkJ2EFUot709yPEDxSkXmH5XevMebX2HD768A,7330
12
12
  geney/seqmat_utils.py,sha256=YV5DFLbfjXLIswPGvqK1-eEfwn9TUby0b2kewdGAKws,18372
@@ -20,7 +20,7 @@ geney/translation_initiation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NM
20
20
  geney/translation_initiation/tis_utils.py,sha256=AF3siFjuQH-Rs44EV-80zHdbxRMvN4woLFSHroWIETc,4448
21
21
  geney/translation_initiation/resources/kozak_pssm.json,sha256=pcd0Olziutq-6H3mFWDCD9cujQ_AlZO-iiOvBl82hqE,1165
22
22
  geney/translation_initiation/resources/tis_regressor_model.joblib,sha256=IXb4DUDhJ5rBDKcqMk9zE3ECTZZcdj7Jixz3KpoZ7OA,2592025
23
- geney-1.2.42.dist-info/METADATA,sha256=90jAGKe0wSXZdWOKj87JjFiSiS0Nko9Qg9qWhwgdU5w,948
24
- geney-1.2.42.dist-info/WHEEL,sha256=fS9sRbCBHs7VFcwJLnLXN1MZRR0_TVTxvXKzOnaSFs8,110
25
- geney-1.2.42.dist-info/top_level.txt,sha256=O-FuNUMb5fn9dhZ-dYCgF0aZtfi1EslMstnzhc5IIVo,6
26
- geney-1.2.42.dist-info/RECORD,,
23
+ geney-1.2.44.dist-info/METADATA,sha256=tVK1pP7jxfft_dc8kghB1pvLShd_C9tsYAL2vGcueAs,948
24
+ geney-1.2.44.dist-info/WHEEL,sha256=fS9sRbCBHs7VFcwJLnLXN1MZRR0_TVTxvXKzOnaSFs8,110
25
+ geney-1.2.44.dist-info/top_level.txt,sha256=O-FuNUMb5fn9dhZ-dYCgF0aZtfi1EslMstnzhc5IIVo,6
26
+ geney-1.2.44.dist-info/RECORD,,
File without changes