posthoc.qc

class posthoc.qc.filters.QCResult(data: 'GenotypeData', n_dropped_maf: 'int' = 0, n_dropped_geno: 'int' = 0, n_dropped_ld: 'int' = 0)[source]

Bases: object

Parameters:
data: GenotypeData
n_dropped_maf: int = 0
n_dropped_geno: int = 0
n_dropped_ld: int = 0
summary()[source]
Return type:

str

posthoc.qc.filters.compute_maf(genotypes)[source]
Parameters:

genotypes (ndarray)

Return type:

ndarray

posthoc.qc.filters.compute_missing_rate(genotypes)[source]
Parameters:

genotypes (ndarray)

Return type:

ndarray

posthoc.qc.filters.filter_maf(data, min_maf)[source]
Parameters:
Return type:

tuple[GenotypeData, int]

posthoc.qc.filters.filter_geno(data, max_missing)[source]
Parameters:
Return type:

tuple[GenotypeData, int]

posthoc.qc.filters.indep_pairwise(pfile_prefix, window_size, step, r2_threshold, plink2_path=None)[source]
Parameters:
Return type:

list[str]

posthoc.qc.filters.apply_ld_pruning(data, keep_ids)[source]
Parameters:
Return type:

tuple[GenotypeData, int]

posthoc.qc.filters.run_qc(data, *, min_maf=0.0, max_missing=1.0, indep_pairwise_params=None, pfile_prefix=None)[source]
Parameters:
Return type:

QCResult