The core functions for making CHP markers
RData(vcf, tfam, anno_file=None, fam_pop_file=None, allele_freq_info=None, included_variant_file=None) :: dict
dict() -> new empty dictionary
dict(mapping) -> new dictionary initialized from a mapping object's
(key, value) pairs
dict(iterable) -> new dictionary initialized as if via:
d = {}
for k, v in iterable:
d[k] = v
dict(**kwargs) -> new dictionary initialized with the name=value pairs
in the keyword argument list. For example: dict(one=1, two=2)
RegionExtractor(filename, build=None, chr_prefix=None)
Extract given genomic region from VCF
converting genotypes into dictionary of
genotype list
MarkerMaker(wsize=1, maf_cutoff=None, recomb=False)
Functions for __Haplotype
get_family_with_var(data)
phasing_haps(chrom, item, fvar, fgeno)
LinkageWriter(num_missing_append=0)
EncoderWorker(queue, length, data, extractor, coder, writer) :: Process
Process objects represent activity that is run in a separate process
The class is analogous to threading.Thread
run_each_region()
get the haplotypes and allele frequency of variants in each region and run linkage analysis