Skip to content

Commit 7574540

Browse files
committed
fix linting
1 parent 4f9afc3 commit 7574540

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

grassp/io/read.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

160160
def 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

168168
def 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

grassp/preprocessing/enrichment.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
)

grassp/tools/clustering.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import scanpy as sc
1313

1414
from numpy.linalg import det, eigvals, inv
15-
from scipy.special import gammaln
15+
from scipy.special import gammaln # pylint: disable=no-name-in-module
1616
from scipy.stats import multivariate_normal
1717

1818

0 commit comments

Comments
 (0)