geney 1.1.8__py2.py3-none-any.whl → 1.1.10__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/netchop.py CHANGED
@@ -24,21 +24,22 @@ class NetChop(object):
24
24
  The i'th list corresponds to the i'th sequence. Each list gives
25
25
  the cleavage probability for each position in the sequence.
26
26
  """
27
- # with tempfile.NamedTemporaryFile(dir=config_setup['NETCHOP'], suffix=".fsa", mode="w") as input_fd:
28
- temp_file = config_setup['NETCHOP'] / 'netchop_input.fsa'
29
- with open(temp_file, 'w') as input_fd:
30
- print(f"Writing to {input_fd}...")
27
+ with tempfile.NamedTemporaryFile(dir=config_setup['NETCHOP'], suffix=".fsa", mode="w") as input_fd:
28
+ # temp_file = config_setup['NETCHOP'] / 'netchop_input.fsa'
29
+ # with open(temp_file, 'w') as input_fd:
31
30
  for (i, sequence) in enumerate(sequences):
32
- print(f"\tseq{i}: {sequence}")
33
31
  _ = input_fd.write("> %d\n" % i)
34
32
  _ = input_fd.write(sequence)
35
33
  _ = input_fd.write("\n")
36
34
  # input_fd.flush()
35
+ # print(str(temp_file))
36
+
37
37
  try:
38
- output = subprocess.check_output(["netChop", str(temp_file)])
38
+ output = subprocess.check_output(["netchop", str(input_fd.name)])
39
39
  except subprocess.CalledProcessError as e:
40
40
  logging.error("Error calling netChop: %s:\n%s" % (e, e.output))
41
41
  raise
42
+
42
43
  parsed = self.parse_netchop(output)
43
44
  assert len(parsed) == len(sequences), \
44
45
  "Expected %d results but got %d" % (
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: geney
3
- Version: 1.1.8
3
+ Version: 1.1.10
4
4
  Summary: A Python package for gene expression modeling.
5
5
  Home-page: https://github.com/nicolaslynn/geney
6
6
  Author: Nicolas Lynn
@@ -7,7 +7,7 @@ geney/config_setup.py,sha256=SePeooA4RWAtR_KAT1-W1hkD3MT5tH6YMyp80t_RNPQ,385
7
7
  geney/data_setup.py,sha256=DZeksRPr2ZT7bszMo33W0r3OwmqHokVXtZ4gx5Lu_Mo,10725
8
8
  geney/gtex.py,sha256=asL2lHyU5KsbWpV096vkf1Ka7hSo_RRfZqw7p5nERmE,1919
9
9
  geney/gtex_utils.py,sha256=asL2lHyU5KsbWpV096vkf1Ka7hSo_RRfZqw7p5nERmE,1919
10
- geney/netchop.py,sha256=m5bMISRYrwmvjbt8bZi5za7fH6Eq6XfhmOTosDiI3_4,3100
10
+ geney/netchop.py,sha256=AMiy9YsdTmX4B3k3Y5Yh7EmoGAojM1O3AzhPKOiB--g,3050
11
11
  geney/oncosplice.py,sha256=Fyc_UtAhV3Pv0vk8V55rO_jnb2Dwj5sW98KVwP3PHwU,68964
12
12
  geney/oncosplice_pipeline.py,sha256=hpGqFHOdn8i8tvvs1-t3-G9Ko18zInwoDXBJbbrfbC4,68036
13
13
  geney/performance_utils.py,sha256=FQt7rA4r-Wuq3kceCxsSuMfj3wU1tMG8QnbL59aBohs,4700
@@ -43,7 +43,7 @@ geney/translation_initiation/resources/kozak_pssm.json,sha256=pcd0Olziutq-6H3mFW
43
43
  geney/translation_initiation/resources/tis_regressor_model.joblib,sha256=IXb4DUDhJ5rBDKcqMk9zE3ECTZZcdj7Jixz3KpoZ7OA,2592025
44
44
  geney/translation_termination/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
45
45
  geney/translation_termination/tts_utils.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
46
- geney-1.1.8.dist-info/METADATA,sha256=l8qNJO9JUWIeiW9hpiL1mDoMjfNYwLLH0_rNePsrQ0Q,1130
47
- geney-1.1.8.dist-info/WHEEL,sha256=iYlv5fX357PQyRT2o6tw1bN-YcKFFHKqB_LwHO5wP-g,110
48
- geney-1.1.8.dist-info/top_level.txt,sha256=O-FuNUMb5fn9dhZ-dYCgF0aZtfi1EslMstnzhc5IIVo,6
49
- geney-1.1.8.dist-info/RECORD,,
46
+ geney-1.1.10.dist-info/METADATA,sha256=Et_H-jo1c9eYsqEnjk1_gVLRtJYzS9-RXs8RE7Z-u6c,1131
47
+ geney-1.1.10.dist-info/WHEEL,sha256=iYlv5fX357PQyRT2o6tw1bN-YcKFFHKqB_LwHO5wP-g,110
48
+ geney-1.1.10.dist-info/top_level.txt,sha256=O-FuNUMb5fn9dhZ-dYCgF0aZtfi1EslMstnzhc5IIVo,6
49
+ geney-1.1.10.dist-info/RECORD,,
File without changes