kinmatch¶
kinmatch.__init__¶
-
exception
kinmatch.AlreadyExistException(*args, **kwargs)[소스]¶ -
args¶
-
with_traceback()¶ Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
-
-
exception
kinmatch.DBConnectionException(*args, **kwargs)[소스]¶ -
args¶
-
with_traceback()¶ Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
-
-
exception
kinmatch.FileTypeException(*args, **kwargs)[소스]¶ -
args¶
-
with_traceback()¶ Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
-
-
exception
kinmatch.KinmatchException(message)[소스]¶ -
args¶
-
with_traceback()¶ Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
-
-
exception
kinmatch.NoValueException(*args, **kwargs)[소스]¶ -
args¶
-
with_traceback()¶ Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
-
kinmatch.db¶
-
class
kinmatch.db.AlleleFrequenciesManager(dbname='kinmatch')[소스]¶ -
-
current_allele_frequency= {'astr_23': {'markers': ['D8S1179', 'D21S11', 'D7S820', 'CSF1PO', 'D3S1358', 'TH01', 'D13S317', 'D16S539', 'D2S1338', 'D19S433', 'vWA', 'TPOX', 'D18S51', 'D5S818', 'FGA', 'Penta_E', 'Penta_D', 'D10S1248', 'D12S391', 'D1S1656', 'D22S1045', 'D2S441', 'SE33'], 'type_': 'A-STR'}, 'ystr_16': {'markers': ['DYS385', 'DYS389II', 'DYS392'], 'type_': 'Y-STR'}, 'ystr_23': {'markers': ['DYS385', 'DYS389II', 'DYS392', 'DYS635', 'GATAH4__1'], 'type_': 'Y-STR'}, 'astr_15': {'markers': ['D8S1179', 'D21S11', 'D7S820', 'CSF1PO', 'D3S1358', 'TH01', 'D13S317', 'D16S539', 'D2S1338', 'D19S433', 'vWA', 'TPOX', 'D18S51', 'D5S818', 'FGA'], 'type_': 'A-STR'}}¶
-
-
class
kinmatch.db.GenotypeManager(dbname='kinmatch')[소스]¶
-
class
kinmatch.db.TaskManager(dbname='kinmatch')[소스]¶ -
create(identifier, query_group, query_type, query_count, query_first, query_second, target_group, target_type, target_count, target_first, target_second, relationship_type, description, partial, astr_option, ystr_option, mtdna_option, dbname)[소스]¶
-
kinmatch.search¶
-
class
kinmatch.search.IdentityIndexCalculator(af_table)[소스]¶ -
find_formula(query_alleles, target_alleles)¶
-
formula= {}¶
-
get_af(marker, allele)¶
-
get_index(marker, a1, a2, b1, b2)¶
-
-
class
kinmatch.search.KinshipIndexCalculator(af_table)[소스]¶ -
coefficients= {'full-sib': (0.25, 0.5, 0.25), 'first cousin': (0.75, 0.25, 0), 'parent-child': (0, 1, 0), 'half-sib': (0.5, 0.5, 0), 'unrelated': (1, 0, 0), '6 chon': (0.9375, 0.0625, 0), '5 chon': (0.875, 0.125, 0), '7 chon': (0.96875, 0.03125, 0), '8 chon': (0.984375, 0.015625, 0)}¶
-
formula= {}¶
-
formulas= {1: <function KinshipIndexCalculator.<lambda> at 0x10b662f28>, 2: <function KinshipIndexCalculator.<lambda> at 0x10b676048>, 3: <function KinshipIndexCalculator.<lambda> at 0x10b6760d0>, 4: <function KinshipIndexCalculator.<lambda> at 0x10b676158>, 5: <function KinshipIndexCalculator.<lambda> at 0x10b6761e0>, 6: <function KinshipIndexCalculator.<lambda> at 0x10b676268>, 7: <function KinshipIndexCalculator.<lambda> at 0x10b6762f0>, 8: <function KinshipIndexCalculator.<lambda> at 0x10b676378>}¶
-
get_af(marker, allele)¶
-
relationships= ['5 chon', '6 chon', '7 chon', '8 chon', 'first cousin', 'full-sib', 'half-sib', 'parent-child', 'unrelated']¶
-
relationships_explanation= {'full-sib': '형제관계 (부모가 모두 같을 경우)', 'first cousin': '4촌 형제관계', 'parent-child': '부모-자식관계', 'half-sib': '이복/이부 형제, 삼촌-조카, 조부-손자', 'unrelated': '무관한 관계', '6 chon': '6촌 형제', '5 chon': '5촌', '7 chon': '7촌', '8 chon': '8촌 형제'}¶
-
-
class
kinmatch.search.ManageCheckBetween(relationship_type, identifier_a, identifier_b, partial=True, check_astr=True, astr_partial=True, astr_permit_mismatches=2, af_table=None, min_kinship_index=1, check_ystr=False, ystr_partial=True, ystr_permit_mismatches=2, check_mtdna=False, mtdna_partial=True, mtdna_permit_mismatches=2, mtdna_exclude_cstretches=False, dbname='kinmatch')[소스]¶
-
class
kinmatch.search.ManageMultipleSearch(query_group='soldier', query_type='all', query_first=None, query_second=None, target_group='customer', target_type='all', target_first=None, target_second=None, relationship_type='kinship', partial=True, check_astr=True, astr_partial=True, astr_permit_mismatches=2, af_table=None, min_kinship_index=1, check_ystr=False, ystr_partial=True, ystr_permit_mismatches=2, check_mtdna=False, mtdna_partial=True, mtdna_permit_mismatches=2, mtdna_exclude_cstretches=False, dbname='kinmatch', description=None)[소스]¶
-
class
kinmatch.search.ManageSearcher(relationship_type, identifier, target_group, partial=True, check_astr=True, astr_partial=True, astr_permit_mismatches=2, af_table=None, min_kinship_index=1, check_ystr=False, ystr_partial=True, ystr_permit_mismatches=2, check_mtdna=False, mtdna_partial=True, mtdna_permit_mismatches=2, mtdna_exclude_cstretches=False, dbname='kinmatch')[소스]¶
-
class
kinmatch.search.MtdnaSearcher(query=None, df_genotypes=None)[소스]¶ -
-
search_identities(permit_mismatches=2, exclude_cstretches=False, partial=False, is_multiprocess=True)[소스]¶
-
set_params(query, df_genotypes)¶
-
-
class
kinmatch.search.PaternityIndexCalculator(af_table)[소스]¶ -
-
formula= {1: <function PaternityIndexCalculator.<lambda> at 0x10b662ae8>, 2: <function PaternityIndexCalculator.<lambda> at 0x10b662b70>, 3: <function PaternityIndexCalculator.<lambda> at 0x10b662bf8>, 4: <function PaternityIndexCalculator.<lambda> at 0x10b662c80>, 5: <function PaternityIndexCalculator.<lambda> at 0x10b662d08>}¶
-
get_af(marker, allele)¶
-
-
class
kinmatch.search.SearchIntegrator(query)[소스]¶
kinmatch.report¶
-
kinmatch.report.create_astr_kinship_rows(kinship_result, goldstar_identifier, customer_identifier, start_row_num=2)[소스]¶
-
kinmatch.report.create_astr_rows(astr_result, goldstar_identifier, customer_identifier, start_row_num=1)[소스]¶
-
kinmatch.report.create_mtdna_rows(mtdna_result, goldstar_identifier, customer_identifier, start_row_num=1)[소스]¶
-
kinmatch.report.create_ystr_rows(ystr_result, goldstar_identifier, customer_identifier, start_row_num=1)[소스]¶
-
kinmatch.report.make_hml(query_a, query_b, outfile, customer_goldstar_name, customer_name, customer_relationship, hml_template='data/kinship_result.hml')[소스]¶
kinmatch.config¶
kinmatch.utils¶
-
class
kinmatch.utils.ASTRGenotypeCleaner(genotype, is_encoded=False)[소스]¶ -
decode(null='-', markers=None)¶
-
decode_allele(allele, marker='')¶
-
decode_alleles(alleles, marker='', null='-')¶
-
encode_allele(allele, marker='')¶
-
encode_alleles(alleles, marker='', null=None)¶
-
encode_marker(marker)¶
-
-
class
kinmatch.utils.DataContainer(status='', message='', items=None, itemCount=0, totalCount=0, totalPageCount=0, format_='json', trans=False, zeroization=False)[소스]¶ -
-
items¶
-
-
class
kinmatch.utils.MtdnaGenotypeCleaner(genotype, is_encoded=False)[소스]¶ -
decode(null='-', markers=None)¶
-
decode_allele(allele, marker='')¶
-
decode_alleles(alleles, marker='', null='')¶
-
encode_allele(allele, marker='')¶
-
encode_alleles(alleles, marker='', null=None)¶
-
encode_marker(marker)¶
-
-
class
kinmatch.utils.STRGenotypeCleaner(genotype, is_encoded=False)[소스]¶ -
decode(null='-', markers=None)¶
-
decode_marker(marker)¶
-
encode(null=None, markers=None)¶
-
encode_marker(marker)¶
-