Skip to content

No control over number of PCs in batch_correct_none #307

@wlason

Description

@wlason

I have a complex study design with not all antibodies present in every sample (there are 24 in total).
I would like to run protein batch correction using harmony with 10 PCs, the number of PCs gets correctly parsed to harmony, but not to no correction workflow, resulting in an error.

ValueError: n_components=20 must be between 1 and min(n_samples, n_features)=19 with svd_solver='arpack'

if adata.var.shape[0] < n_pcs:
L.info("You have less features than number of PCs you intend to calculate")
n_pcs = adata.var.shape[0] - 1
L.info("Setting n PCS to %i" % int(n_pcs))

There is no way to change the default n-1 in the yaml.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions