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.
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dspin
3
- Version: 1.0.2
4
- Summary: Python implementation of 'D-SPIN constructs gene regulatory network models from multiplexed scRNA-seq data revealing organizing principles of cellular perturbation response'
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.01,
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.05,
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.1
207
+ params['stepsz'] = 0.2
208
208
  elif method == 'mcmc_maximum_likelihood':
209
209
  params['stepsz'] = 0.01
210
- params['mcmc_samplingsz'] = 2e5
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) > 10:
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
- self._relative_responses = compute_relative_responses(self._responses, self.samp_list, sample_to_control_dict, sample_batch_dict)
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.2
4
- Summary: Python implementation of 'D-SPIN constructs gene regulatory network models from multiplexed scRNA-seq data revealing organizing principles of cellular perturbation response'
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.2" # You can manage versioning in a more sophisticated way if needed
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="Python implementation of 'D-SPIN constructs gene regulatory network models from multiplexed scRNA-seq data revealing organizing principles of cellular perturbation response'",
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