File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -153,21 +153,21 @@ def read_maxquant(*args, **kwargs) -> anndata.AnnData:
153153 """
154154 Wrapper for protdata.read_maxquant that transposes the AnnData object.
155155 """
156- adata = protdata .read_maxquant (* args , ** kwargs )
156+ adata = protdata .io . read_maxquant (* args , ** kwargs )
157157 return adata .T
158158
159159
160160def read_fragpipe (* args , ** kwargs ) -> anndata .AnnData :
161161 """
162162 Wrapper for protdata.read_fragpipe that transposes the AnnData object.
163163 """
164- adata = protdata .read_fragpipe (* args , ** kwargs )
164+ adata = protdata .io . read_fragpipe (* args , ** kwargs )
165165 return adata .T
166166
167167
168168def read_diann (* args , ** kwargs ) -> anndata .AnnData :
169169 """
170170 Wrapper for protdata.read_diann that transposes the AnnData object.
171171 """
172- adata = protdata .read_diann (* args , ** kwargs )
172+ adata = protdata .io . read_diann (* args , ** kwargs )
173173 return adata .T
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ def calculate_enrichment_vs_untagged(
116116 "Multiple samples found for condition: " + experimental_condition
117117 )
118118 data_aggr .layers ["pvals" ][:, aggr_mask ] = pv [:, None ]
119- data_aggr . X [:, aggr_mask ] = lfc [:, None ]
119+ data_aggr [:, aggr_mask ]. X = lfc [:, None ]
120120
121121 # Now remove the untagged samples
122122 if drop_untagged :
@@ -215,7 +215,7 @@ def calculate_enrichment_vs_all(
215215 lfc = np .median (intensities_ip , axis = 1 ) - np .median (intensities_control , axis = 1 )
216216 aggr_mask = data_aggr .var ["_experimental_condition" ] == experimental_condition
217217 data_aggr .layers ["pvals" ][:, aggr_mask ] = pv [:, None ]
218- data_aggr . X [:, aggr_mask ] = lfc [:, None ]
218+ data_aggr [:, aggr_mask ]. X = lfc [:, None ]
219219 data_aggr .var .loc [aggr_mask , "enriched_vs" ] = "," .join (
220220 data_aggr .var_names [control_mask ]
221221 )
Original file line number Diff line number Diff line change 1212import scanpy as sc
1313
1414from numpy .linalg import det , eigvals , inv
15- from scipy .special import gammaln
15+ from scipy .special import gammaln # pylint: disable=no-name-in-module
1616from scipy .stats import multivariate_normal
1717
1818
You can’t perform that action at this time.
0 commit comments