FatalError: IllegalArgumentException: requirement failed: Requested k singular values but got k=10 and numCols=3

I going through the Hail_COVID19weswgs notebook and get an error with the hwe_normalized_pca step. The error message is: IllegalArgumentException: requirement failed: Requested k singular values but got k=10 and numCols=3.

I get a similar error with k=3.

The singular value position of a matrix with 3 columns can’t include 10 orthogonal directions of variance – the matrix is fully specified by three! That’s what this error means.

If you run this with 11 samples, you can request k=10 and it should run fine.