<jupyter_start><jupyter_text>Function Counting Resistant Strength  TODO - input `pattern` not validating for nowCurrently assuming all inputs are valid**And assuming only two drugs are evaluated**<jupyter_code># pattern = 'KNY--Y2x' etc.
# drug is a list
def res_strength_count(pattern, drug):
    result = '........' # assuming wild type
    return_dic = {}
    drug1 = 'Just-' + drug[0]
    drug2 = 'Just-' + drug[1]
    mdr = drug[0] + '+' + drug[1]
    for i in drug:
        if i == 'A': # check for art. resistant
            if pattern
drug = ['A','Lum']
drug[0]<jupyter_output><empty_output><jupyter_text>Main Function<jupyter_code># Figure Size
plt.rcParams['figure.figsize'] = [20, 10]<jupyter_output><empty_output><jupyter_text>AL<jupyter_code>MDR_case_count('al.txt', '^(TYF|TNY|TNF|KYY|KYF|KNY|KNF)..Y..$')
MDR_plot_geno_freq('al.txt', '^(TYF|TNY|TNF|KYY|KYF|KNY|KNF)..Y..$')<jupyter_output><empty_output><jupyter_text>AS-AQ<jupyter_code>MDR_case_count('asaq.txt', '^(TYF|TNY|TNF|KYY|KYF|KNY|TYY)..Y..$')
MDR_plot_geno_freq('asaq.txt', '^(TYF|TNY|TNF|KYY|KYF|KNY|TYY)..Y..$')<jupyter_output><empty_output><jupyter_text>DHA-PPQ<jupyter_code>MDR_case_count('dhappq.txt', '^.....Y2.$')
MDR_plot_geno_freq('dhappq.txt', '^.....Y2.$')<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.19732704402515724, 'fraction_numerical': 0.0110062893081761, 'mean_word_length': 5.528205128205128, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '5', 'dir': 'jupyter-structured-clean-dedup', 'id': '311014', 'license': 'MIT', 'n_tokens_mistral': 569, 'n_tokens_neox': 545, 'n_words': 77, 'path': 'Archives/200225/Baseline-MDR-CaseCount-and-ByGenoNumCount.ipynb', 'repo_name': 'lizhewen/BoniLabMDR', 'size': '1272'}