Using single site analysis#
This tutorial shows you how to perform a single site analysis using your trained models. It will enumerate all single mutants of a selected sequence and predict the relevant property selected at model training. The Predict module works with single sequences as well as single mutant variants of the sequence.
What you need before getting started#
This workflow requires experimental data. If you don’t have experimental data, get started with our PoET single site analysis tool which uses evolutionary data from a multiple sequence alignment. See Creating a multiple sequence alignment for more information.
In order to perform a single site analysis with the Predict module, you need a trained model. To upload a dataset and train a model, please see Uploading data and Training models.
Predicting your sequences#
Create a new Predict job for single site mutation analysis using your trained model:
[ ]:
sequence = assay.get_first().sequence[0]
sspredict = train.predict_single_site(sequence)
[ ]:
sspredict
PredictSingleSiteJob(status=<JobStatus.PENDING: 'PENDING'>, job_id='969df449-3b13-46cf-a429-660c175c53a8', job_type=<JobType.worflow_predict_single_site: '/workflow/predict/single_site'>, created_date=None, start_date=None, end_date=None, prerequisite_job_id=None, progress_message=None, progress_counter=0, num_records=None, sequence_length=None, result=None)
Call your results:
[ ]:
ssp_results = sspredict.wait(verbose=True)
list(ssp_results.keys())
Waiting: 100%|██████████| 100/100 [00:00<00:00, 2529.23it/s, status=SUCCESS]
['isobutyramide_normalized_fitness']
[ ]:
ssp_results["isobutyramide_normalized_fitness"]["46H"]
{'mean': -0.523753821849823, 'variance': 0.005318880081176758}
Next steps#
Our Predict API page contains more information about single site analysis using your trained model.
Once you’re finished evaluating single substitution variants, use Structure prediction to visualize your sequence of interest.