dspin 1.0.2__tar.gz → 1.0.3__tar.gz
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.
- {dspin-1.0.2/dspin.egg-info → dspin-1.0.3}/PKG-INFO +2 -2
- {dspin-1.0.2 → dspin-1.0.3}/dspin/dspin_abstract.py +6 -6
- {dspin-1.0.2 → dspin-1.0.3/dspin.egg-info}/PKG-INFO +2 -2
- {dspin-1.0.2 → dspin-1.0.3}/setup.py +2 -2
- {dspin-1.0.2 → dspin-1.0.3}/LICENSE +0 -0
- {dspin-1.0.2 → dspin-1.0.3}/README.md +0 -0
- {dspin-1.0.2 → dspin-1.0.3}/__pycache__/__init__.cpython-310.pyc +0 -0
- {dspin-1.0.2 → dspin-1.0.3}/__pycache__/__init__.cpython-37.pyc +0 -0
- {dspin-1.0.2 → dspin-1.0.3}/__pycache__/compute.cpython-310.pyc +0 -0
- {dspin-1.0.2 → dspin-1.0.3}/__pycache__/compute.cpython-37.pyc +0 -0
- {dspin-1.0.2 → dspin-1.0.3}/__pycache__/dspin_abstract.cpython-310.pyc +0 -0
- {dspin-1.0.2 → dspin-1.0.3}/__pycache__/plot.cpython-310.pyc +0 -0
- {dspin-1.0.2 → dspin-1.0.3}/__pycache__/plotting.cpython-37.pyc +0 -0
- {dspin-1.0.2 → dspin-1.0.3}/dspin/__init__.py +0 -0
- {dspin-1.0.2 → dspin-1.0.3}/dspin/compute.py +0 -0
- {dspin-1.0.2 → dspin-1.0.3}/dspin/gpt.py +0 -0
- {dspin-1.0.2 → dspin-1.0.3}/dspin/metadata_drug.py +0 -0
- {dspin-1.0.2 → dspin-1.0.3}/dspin/plot.py +0 -0
- {dspin-1.0.2 → dspin-1.0.3}/dspin.egg-info/SOURCES.txt +0 -0
- {dspin-1.0.2 → dspin-1.0.3}/dspin.egg-info/dependency_links.txt +0 -0
- {dspin-1.0.2 → dspin-1.0.3}/dspin.egg-info/requires.txt +0 -0
- {dspin-1.0.2 → dspin-1.0.3}/dspin.egg-info/top_level.txt +0 -0
- {dspin-1.0.2 → dspin-1.0.3}/requirements.txt +0 -0
- {dspin-1.0.2 → dspin-1.0.3}/setup.cfg +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: dspin
|
|
3
|
-
Version: 1.0.
|
|
4
|
-
Summary:
|
|
3
|
+
Version: 1.0.3
|
|
4
|
+
Summary: Regulatory network models from single-cell perturbation profiling
|
|
5
5
|
Home-page: https://github.com/JialongJiang/DSPIN
|
|
6
6
|
Author: Jialong Jiang
|
|
7
7
|
Author-email: jiangjl@caltech.edu
|
|
@@ -195,19 +195,19 @@ class AbstractDSPIN(ABC):
|
|
|
195
195
|
'cur_j': np.zeros((num_spin, num_spin)),
|
|
196
196
|
'cur_h': np.zeros((num_spin, num_sample)),
|
|
197
197
|
'save_path': self.save_path}
|
|
198
|
-
params.update({'lambda_l1_j': 0.
|
|
198
|
+
params.update({'lambda_l1_j': 0.001,
|
|
199
199
|
'lambda_l1_h': 0,
|
|
200
200
|
'lambda_l2_j': 0,
|
|
201
|
-
'lambda_l2_h': 0.
|
|
201
|
+
'lambda_l2_h': 0.005,
|
|
202
202
|
'lambda_prior_h': 0})
|
|
203
203
|
params.update({'backtrack_gap': 20,
|
|
204
204
|
'backtrack_tol': 4})
|
|
205
205
|
|
|
206
206
|
if method == 'maximum_likelihood':
|
|
207
|
-
params['stepsz'] = 0.
|
|
207
|
+
params['stepsz'] = 0.2
|
|
208
208
|
elif method == 'mcmc_maximum_likelihood':
|
|
209
209
|
params['stepsz'] = 0.01
|
|
210
|
-
params['mcmc_samplingsz'] =
|
|
210
|
+
params['mcmc_samplingsz'] = 5e5
|
|
211
211
|
params['mcmc_samplingmix'] = 1e3
|
|
212
212
|
params['mcmc_samplegap'] = 1
|
|
213
213
|
else:
|
|
@@ -249,7 +249,7 @@ class AbstractDSPIN(ABC):
|
|
|
249
249
|
|
|
250
250
|
if method == 'auto':
|
|
251
251
|
if example_list is not None:
|
|
252
|
-
if len(example_list) >
|
|
252
|
+
if len(example_list) > 30:
|
|
253
253
|
method = 'pseudo_likelihood'
|
|
254
254
|
else:
|
|
255
255
|
samp_list = np.unique(self.adata.obs[sample_col_name])
|
|
@@ -300,7 +300,7 @@ class AbstractDSPIN(ABC):
|
|
|
300
300
|
unique_sample_batch = unique_sample_batch.loc[self.samp_list]
|
|
301
301
|
sample_batch_dict = unique_sample_batch['batch'].to_dict()
|
|
302
302
|
|
|
303
|
-
|
|
303
|
+
self._relative_responses = compute_relative_responses(self._responses, self.samp_list, sample_to_control_dict, sample_batch_dict)
|
|
304
304
|
|
|
305
305
|
|
|
306
306
|
class GeneDSPIN(AbstractDSPIN):
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: dspin
|
|
3
|
-
Version: 1.0.
|
|
4
|
-
Summary:
|
|
3
|
+
Version: 1.0.3
|
|
4
|
+
Summary: Regulatory network models from single-cell perturbation profiling
|
|
5
5
|
Home-page: https://github.com/JialongJiang/DSPIN
|
|
6
6
|
Author: Jialong Jiang
|
|
7
7
|
Author-email: jiangjl@caltech.edu
|
|
@@ -21,7 +21,7 @@ install_requires = [
|
|
|
21
21
|
# ]
|
|
22
22
|
|
|
23
23
|
# Managing your version (adjust accordingly)
|
|
24
|
-
version = "1.0.
|
|
24
|
+
version = "1.0.3" # You can manage versioning in a more sophisticated way if needed
|
|
25
25
|
|
|
26
26
|
# Long description (usually a README file)
|
|
27
27
|
readme = open("README_PyPI.md").read() # Adjust the file name if necessary
|
|
@@ -29,7 +29,7 @@ readme = open("README_PyPI.md").read() # Adjust the file name if necessary
|
|
|
29
29
|
setup(
|
|
30
30
|
name="dspin",
|
|
31
31
|
version=version,
|
|
32
|
-
description="
|
|
32
|
+
description="Regulatory network models from single-cell perturbation profiling",
|
|
33
33
|
author="Jialong Jiang",
|
|
34
34
|
author_email="jiangjl@caltech.edu",
|
|
35
35
|
packages=find_packages(),
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|