@@ -28,7 +28,7 @@ def pca_est(
2828 random_state : RandomStateType = 0 ,
2929 variable : str = "call_alternate_allele_count" ,
3030) -> BaseEstimator :
31- """ Create PCA estimator """
31+ """Create PCA estimator"""
3232 if ploidy is None :
3333 if "ploidy" not in ds .dims :
3434 raise ValueError (
@@ -79,7 +79,7 @@ def pca_fit(
7979 variable : str = "call_alternate_allele_count" ,
8080 check_missing : bool = True ,
8181) -> BaseEstimator :
82- """ Fit PCA estimator """
82+ """Fit PCA estimator"""
8383 AC = _allele_counts (ds , variable , check_missing = check_missing )
8484 return est .fit (da .asarray (AC ).T )
8585
@@ -92,7 +92,7 @@ def pca_transform(
9292 check_missing : bool = True ,
9393 merge : bool = True ,
9494) -> Dataset :
95- """ Apply PCA estimator to new data """
95+ """Apply PCA estimator to new data"""
9696 AC = _allele_counts (ds , variable , check_missing = check_missing )
9797 projection = est .transform (da .asarray (AC ).T )
9898 new_ds = Dataset (
@@ -111,7 +111,7 @@ def _get(est: BaseEstimator, attr: str, fn: Any = lambda v: v) -> Optional[Array
111111
112112
113113def pca_stats (ds : Dataset , est : BaseEstimator , * , merge : bool = True ) -> Dataset :
114- """ Extract attributes from PCA estimator """
114+ """Extract attributes from PCA estimator"""
115115 new_ds = {
116116 variables .sample_pca_component : (
117117 ("variants" , "components" ),
0 commit comments