snipar.read.bed module

snipar.read.bed.get_gts_matrix_given_ped(ped, bedfile, par_gts_f=None, snp_ids=None, ids=None, sib=False, parsum=False, verbose=False, print_sample_info=False)[source]

Used in get_gts_matrix: see get_gts_matrix for documentation

snipar.read.bed.get_snps(gts_f, bim, snp_ids=None)[source]
snipar.read.bed.match_observed_and_imputed_snps(gts_f, par_gts_f, bim, snp_ids=None, start=0, end=None)[source]

Used in get_gts_matrix_given_ped to match observed and imputed SNPs and return SNP information on shared SNPs. Removes SNPs that have duplicated SNP ids. in_obs_sid contains the SNPs in the imputed genotypes that are present in the observed SNPs obs_sid_index contains the index in the observed SNPs of the common SNPs

snipar.read.bed.read_PO_pairs_from_bed(ped, bedfile)[source]
snipar.read.bed.read_sibs_from_bed(bedfile, sibpairs)[source]