Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 2 | 4 | 0.972 | compound_stmt |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 71 | Bio/PopGen/GenePop/EasyController.py |
2 | 8 | 82 | Bio/PopGen/GenePop/EasyController.py |
| ||||
def get_heterozygosity_info(self,pop_pos,locus_name): """Returns the heterozygosity info for a certain locus on a population. Returns (Expected homozygotes, observed homozygotes, Expected heterozygotes, observed heterozygotes) """ geno_freqs = self._controller.calc_allele_genotype_freqs(self._fname) pop_iter,loc_iter = geno_freqs pops = list(pop_iter) return pops[pop_pos][1][locus_name][1] |
| ||||
def get_genotype_count(self,pop_pos,locus_name): """Returns the genotype counts for a certain population and locus """ geno_freqs = self._controller.calc_allele_genotype_freqs(self._fname) pop_iter,loc_iter = geno_freqs pop_iter = list(pop_iter) return pop_iter[pop_pos][1][locus_name][0] |
| |||
def [[#variable2e553ce0]](self,pop_pos,locus_name): [[#variable2e552480]] geno_freqs = self._controller.calc_allele_genotype_freqs(self._fname) pop_iter,loc_iter = geno_freqs [[#variable2e552a80]]= list(pop_iter) return [[#variable2e552a80]][pop_pos][1][locus_name][ [[#variable2e553180]]] |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#2e553ce0]] | get_genotype_count |
1 | 2 | [[#2e553ce0]] | get_heterozygosity_info |
2 | 1 | [[#2e552480]] | """Returns the genotype counts for a certain population and locus """ |
2 | 2 | [[#2e552480]] | """Returns the heterozygosity info for a certain locus on a population. Returns (Expected homozygotes, observed homozygotes, Expected heterozygotes, observed heterozygotes) """ |
3 | 1 | [[#2e552a80]] | pop_iter |
3 | 2 | [[#2e552a80]] | pops |
4 | 1 | [[#2e553180]] | 0 |
4 | 2 | [[#2e553180]] | 1 |