99from .snp_data import AnophelesSnpData
1010from . import base_params
1111from . import pca_params
12+ from numpydoc_decorator import doc # type: ignore
1213
1314
1415class PlinkConverter (
@@ -23,6 +24,26 @@ def __init__(
2324 # to the superclass constructor.
2425 super ().__init__ (** kwargs )
2526
27+ @doc (
28+ summary = """
29+ Write Anopheles biallelic SNP data to the Plink binary file format.
30+ """ ,
31+ extended_summary = """
32+ This function writes biallelic SNPs to the Plink binary file format. It enables
33+ subsetting to specific regions (`region`), selecting specific sample sets, or lists of
34+ samples, randomly downsampling sites, and specifying filters based on missing data and
35+ minimum minor allele count (see the docs for `biallelic_snp_calls` for more information).
36+ The `overwrite` parameter, set to true, will enable overwrite of data with the same
37+ hash values (e.g. with a different randomly selected number of sites).
38+ """ ,
39+ returns = ("Binary Plink output files: .bed, .bim, .fam" ),
40+ notes = """
41+ This computation may take some time to run, depending on your computing
42+ environment. Unless the `overwrite` parameter is set to `True`, results will be loaded
43+ from a previous computation, if performed, and if the `results_cache` parameter was
44+ set when instantiating the API client.
45+ """ ,
46+ )
2647 def _create_plink_outfile (
2748 self ,
2849 * ,
0 commit comments