You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
path_to_msa='./sequence_generation/inputs/PD1_Hchains_aligned.a3m'n_sequences=33# number of sequences in MSA to subsampleseq_length=200# maximum sequence length to subsampleselection_type='random'# or 'MaxHamming'; MSA subsampling schemetokenized_sample, generated_sequence=generate_query_oadm_msa_simple(path_to_msa, model, tokenizer, n_sequences, seq_length, device=0, selection_type=selection_type)
print("New H chain sequence (no gaps, pad tokens)", re.sub('[!-]', '', generated_sequence[0][0],))
L Chain
path_to_msa='./sequence_generation/inputs/PD1_Lchains_aligned.a3m'n_sequences=33# number of sequences in MSA to subsampleseq_length=200# maximum sequence length to subsampleselection_type='random'# or 'MaxHamming'; MSA subsampling schemetokenized_sample, generated_sequence=generate_query_oadm_msa_simple(path_to_msa, model, tokenizer, n_sequences, seq_length, device=0, selection_type=selection_type)
print("New L chain sequence (no gaps, pad tokens)", re.sub('[!-]', '', generated_sequence[0][0],))