immucellai2 2.1.31__tar.gz → 2.1.33__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.
- {immucellai2-2.1.31 → immucellai2-2.1.33}/PKG-INFO +1 -1
- {immucellai2-2.1.31 → immucellai2-2.1.33}/immucellai2/Deconvolution.py +10 -9
- {immucellai2-2.1.31 → immucellai2-2.1.33}/immucellai2/myclasses.py +4 -10
- {immucellai2-2.1.31 → immucellai2-2.1.33}/immucellai2.egg-info/PKG-INFO +1 -1
- {immucellai2-2.1.31 → immucellai2-2.1.33}/setup.cfg +1 -1
- {immucellai2-2.1.31 → immucellai2-2.1.33}/README.md +0 -0
- {immucellai2-2.1.31 → immucellai2-2.1.33}/immucellai2/Drawplot.py +0 -0
- {immucellai2-2.1.31 → immucellai2-2.1.33}/immucellai2/ObtainCategory.py +0 -0
- {immucellai2-2.1.31 → immucellai2-2.1.33}/immucellai2/PrepareData.py +0 -0
- {immucellai2-2.1.31 → immucellai2-2.1.33}/immucellai2/Time.py +0 -0
- {immucellai2-2.1.31 → immucellai2-2.1.33}/immucellai2/__init__.py +0 -0
- {immucellai2-2.1.31 → immucellai2-2.1.33}/immucellai2/myconfig/Celltype.category +0 -0
- {immucellai2-2.1.31 → immucellai2-2.1.33}/immucellai2/myconfig/MarkerUsedDeconvolution.txt +0 -0
- {immucellai2-2.1.31 → immucellai2-2.1.33}/immucellai2/myconfig/reference_normalCelltypes.txt +0 -0
- {immucellai2-2.1.31 → immucellai2-2.1.33}/immucellai2/myconfig/reference_tumorCelltypes.txt +0 -0
- {immucellai2-2.1.31 → immucellai2-2.1.33}/immucellai2.egg-info/SOURCES.txt +0 -0
- {immucellai2-2.1.31 → immucellai2-2.1.33}/immucellai2.egg-info/dependency_links.txt +0 -0
- {immucellai2-2.1.31 → immucellai2-2.1.33}/immucellai2.egg-info/entry_points.txt +0 -0
- {immucellai2-2.1.31 → immucellai2-2.1.33}/immucellai2.egg-info/requires.txt +0 -0
- {immucellai2-2.1.31 → immucellai2-2.1.33}/immucellai2.egg-info/top_level.txt +0 -0
- {immucellai2-2.1.31 → immucellai2-2.1.33}/pyproject.toml +0 -0
|
@@ -256,17 +256,18 @@ def MainRun(RunObject, seed=42, MultithreadModule = 'joblib'):
|
|
|
256
256
|
EnvironmentRun = RunObject.EnvironmentRun
|
|
257
257
|
RecordTime = CLASS_FOR_TIME()
|
|
258
258
|
nsamples = len(RunObject.SampleList)
|
|
259
|
+
SampleNameToIndex = {name: idx for idx, name in enumerate(RunObject.SampleList)}
|
|
259
260
|
parameterlist = []
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
261
|
+
for SampleNameii in range(nsamples):
|
|
262
|
+
SampleName = RunObject.SampleList[SampleNameii]
|
|
263
|
+
SampleIndex = SampleNameToIndex[SampleName]
|
|
263
264
|
parameterlist.append((
|
|
264
|
-
|
|
265
|
-
RunObject.CelltypesReferenceMatrix
|
|
266
|
-
RunObject.SamplesBulkRNAseqExpression[
|
|
267
|
-
|
|
268
|
-
RunObject.MAPorMLE
|
|
269
|
-
))
|
|
265
|
+
RunObject.EmceeParameter.mycopy(),
|
|
266
|
+
RunObject.CelltypesReferenceMatrix,
|
|
267
|
+
RunObject.SamplesBulkRNAseqExpression[SampleIndex],
|
|
268
|
+
SampleName,
|
|
269
|
+
RunObject.MAPorMLE
|
|
270
|
+
))
|
|
270
271
|
MultiprocessingReturnValue = []
|
|
271
272
|
if MultithreadModule == 'joblib':
|
|
272
273
|
try:
|
|
@@ -99,16 +99,10 @@ class CLASS_FOR_RUNRESULT(object):
|
|
|
99
99
|
self.EmceeFunction2( McSamplingResultList[sampleii, :, :, :] )
|
|
100
100
|
return NewMcSamplingResultList
|
|
101
101
|
def optimized_calculation(self, FlatSamplingResultOne, nCellType):
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
elif FlatSamplingResultOne.shape[1] + 1 == nCellType:
|
|
107
|
-
normalized = FlatSamplingResultOne / row_sums_safe
|
|
108
|
-
last_col = 1 - normalized.sum(axis=1, keepdims=True)
|
|
109
|
-
return numpy.column_stack((normalized, last_col))
|
|
110
|
-
else:
|
|
111
|
-
raise ValueError(f"Dimension mismatch: input {FlatSamplingResultOne.shape[1]} columns, target {nCellType}columns")
|
|
102
|
+
if FlatSamplingResultOne.shape[1] == nCellType:
|
|
103
|
+
return FlatSamplingResultOne / FlatSamplingResultOne.sum(axis=1)[:, None]
|
|
104
|
+
elif FlatSamplingResultOne.shape[1] + 1 == nCellType:
|
|
105
|
+
return numpy.column_stack((FlatSamplingResultOne, 1 - FlatSamplingResultOne.sum(axis=1)))
|
|
112
106
|
def EmceeFunction2(self, FlatSamplingResultList):
|
|
113
107
|
fshape = FlatSamplingResultList.shape
|
|
114
108
|
nCellType = len(self.CellType)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{immucellai2-2.1.31 → immucellai2-2.1.33}/immucellai2/myconfig/reference_normalCelltypes.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|