geney 1.2.7__py2.py3-none-any.whl → 1.2.8__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
@@ -1033,7 +1033,7 @@ class PredictSpliceAI:
1033
1033
  # elif isinstance(gene_data, Transcript):
1034
1034
 
1035
1035
  # self.missplicing = run_spliceai_transcript(self.modification, transcript_data=gene_data, sai_mrg_context=sai_mrg_context, min_coverage=min_coverage, sai_threshold=0.1)
1036
- ref_transcript, var_transcript = Gene(gene_data.gene, organism='mm39'), Gene(gene_data.gene, variation=mutation, organism='mm39')
1036
+ ref_transcript, var_transcript = Gene(mutation.split(':')[0], organism='mm39'), Gene(mutation.split(':')[0], variation=mutation, organism='mm39')
1037
1037
  self.missplicing = find_transcript_missplicing(self.modification, ref_transcript, var_transcript, context=sai_mrg_context+min_coverage, threshold=threshold,
1038
1038
  engine=engine)
1039
1039
  if save_results:
@@ -1503,7 +1503,7 @@ def moving_average_conv(vector, window_size, factor=1):
1503
1503
 
1504
1504
  return np.convolve(vector, np.ones(window_size), mode='same') / window_size
1505
1505
 
1506
- def oncosplice(mut_id, sai_threshold=0.5, protein_coding=True, primary_transcript=False, window_length=13, save_spliceai_results=False, force_spliceai=False, organism='hg38'):
1506
+ def oncosplice(mut_id, sai_threshold=0.5, protein_coding=True, primary_transcript=False, window_length=13, save_spliceai_results=False, force_spliceai=False, organism='hg38', engine='spliceai'):
1507
1507
  mutation = Variations(mut_id)
1508
1508
  # try:
1509
1509
  reference_gene = Gene(mutation.gene, organism=organism)
@@ -1520,7 +1520,7 @@ def oncosplice(mut_id, sai_threshold=0.5, protein_coding=True, primary_transcrip
1520
1520
  continue
1521
1521
 
1522
1522
  cons_vector = transform_conservation_vector(reference.cons_vector, window=window_length)
1523
- missplicing_obj = PredictSpliceAI(mutation, reference, threshold=sai_threshold, force=force_spliceai, save_results=save_spliceai_results)
1523
+ missplicing_obj = PredictSpliceAI(mutation, reference, threshold=sai_threshold, force=force_spliceai, save_results=save_spliceai_results, engine=engine)
1524
1524
  missplicing = missplicing_obj.apply_sai_threshold_primary(threshold=sai_threshold)
1525
1525
 
1526
1526
  for i, new_boundaries in enumerate(develop_aberrant_splicing(variant, missplicing)):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: geney
3
- Version: 1.2.7
3
+ Version: 1.2.8
4
4
  Summary: A Python package for gene expression modeling.
5
5
  Home-page: https://github.com/nicolaslynn/geney
6
6
  Author: Nicolas Lynn
@@ -9,7 +9,7 @@ geney/gtex.py,sha256=asL2lHyU5KsbWpV096vkf1Ka7hSo_RRfZqw7p5nERmE,1919
9
9
  geney/gtex_utils.py,sha256=asL2lHyU5KsbWpV096vkf1Ka7hSo_RRfZqw7p5nERmE,1919
10
10
  geney/immune_utils.py,sha256=ZRni5ttrhpYBnmNr0d0ZatIbNPYs4nmQuoUO00SpsS4,5271
11
11
  geney/netchop.py,sha256=AMiy9YsdTmX4B3k3Y5Yh7EmoGAojM1O3AzhPKOiB--g,3050
12
- geney/oncosplice.py,sha256=8tV8Wzz_I3CNGgeNNqhJvDOb1A3slzsyk9mnRQXuC-c,77329
12
+ geney/oncosplice.py,sha256=NhC164g0hzuV-hxMwlVtpXFxp067Mq_fnQUhn6vKK5A,77379
13
13
  geney/oncosplice_mouse.py,sha256=LYLOukI9qI1IBkyl1qVRFR5d1NAw7Orlj8Zth-4xCW8,12962
14
14
  geney/oncosplice_pipeline.py,sha256=hpGqFHOdn8i8tvvs1-t3-G9Ko18zInwoDXBJbbrfbC4,68036
15
15
  geney/performance_utils.py,sha256=FQt7rA4r-Wuq3kceCxsSuMfj3wU1tMG8QnbL59aBohs,4700
@@ -45,7 +45,7 @@ geney/translation_initiation/resources/kozak_pssm.json,sha256=pcd0Olziutq-6H3mFW
45
45
  geney/translation_initiation/resources/tis_regressor_model.joblib,sha256=IXb4DUDhJ5rBDKcqMk9zE3ECTZZcdj7Jixz3KpoZ7OA,2592025
46
46
  geney/translation_termination/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
47
47
  geney/translation_termination/tts_utils.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
48
- geney-1.2.7.dist-info/METADATA,sha256=cCD7LSrUBVp3Hr7HtUFTEFuKFAeD1Yq3Zoyh31CZTfk,1198
49
- geney-1.2.7.dist-info/WHEEL,sha256=iYlv5fX357PQyRT2o6tw1bN-YcKFFHKqB_LwHO5wP-g,110
50
- geney-1.2.7.dist-info/top_level.txt,sha256=O-FuNUMb5fn9dhZ-dYCgF0aZtfi1EslMstnzhc5IIVo,6
51
- geney-1.2.7.dist-info/RECORD,,
48
+ geney-1.2.8.dist-info/METADATA,sha256=2Eu8FxQqLudUMoNG0rt-l2OwT8cikYNb1S407dsYG7E,1198
49
+ geney-1.2.8.dist-info/WHEEL,sha256=iYlv5fX357PQyRT2o6tw1bN-YcKFFHKqB_LwHO5wP-g,110
50
+ geney-1.2.8.dist-info/top_level.txt,sha256=O-FuNUMb5fn9dhZ-dYCgF0aZtfi1EslMstnzhc5IIVo,6
51
+ geney-1.2.8.dist-info/RECORD,,
File without changes