<jupyter_start><jupyter_text>Are there any Ancestry Informative Markers identified in Ag1000g overlapping the amplicon positions?None<jupyter_code>import pandas as pd
PANEL = '../../data/panel_64.csv'
AIMS = 'data/Neafsey_top_MS_allele_freqs.2.txt'
panel = pd.read_csv(PANEL)
panel.columns
aims = pd.read_csv(AIMS, sep='\t', header=None)
aims.columns = ['id','chr','pos','ref','alt','freq1','freq2','freq3']
aims.head()
aim_in_ampls = []
for _, r in panel.iterrows():
    aim_in_ampl = aims[(aims.chr == r.chr) &
                       (aims.pos > r.start) &
                       (aims.pos < r.end)]
    aim_in_ampl['Primary_ID'] = r.Primary_ID
    aim_in_ampls.append(aim_in_ampl)
pd.concat(aim_in_ampls)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1560379918588874, 'fraction_numerical': 0.013568521031207599, 'mean_word_length': 4.054794520547945, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '606801', 'license': 'MIT', 'n_tokens_mistral': 299, 'n_tokens_neox': 284, 'n_words': 46, 'path': 'work/8_ag1k_analysis/5_AIM.ipynb', 'repo_name': 'malariagen/ano-spp', 'size': '737'}