Background:
mRNA is the most crucial aspect of any protein synthesis - after being transcribed from DNA with a myriad of enzymes, the same RNA sequence can code for multiple proteins. Given that one RNA code for many proteins, how do we know which one to select? Our project takes a computational approach towards predicting the closest cell type match given an RNA sequence. While the selection of RNA to produce a protein happens with a mixture of multiple enzymes that involve codon usage (i.e tRNA adaptation, mRNA secondary structure, untranslated regions (UTRs), etc.) under physiological conditions, we utilize AI to perform these predictions on a computation level. Using the randomForestRegressor model in Scikit Learn, our program trains the model on single-nucleus RNA sequencing data in mice brains (Langlieb et al., 2023), and uses this data to predict the level of expression of a random input RNA in each cell type.
Methods
Phase 1: Raw Data Processing
The raw data collected was organized as follows:
- Columns: specific mRNA gene (expressed as an ENSEMBL code from the GRCm39 mouse brain genome (citation))
- Rows: percentage of expression of mRNA gene in a specific cell type (e.g: Ex_Lhx2_Col5a2_1 ) [total data used was about 5030 rows * 20984 columns]
The data received was initially stored in a Pandas Dataframe, then transposed to a dictionary with two columns - ‘Gene’ and ‘Sequence’, where column ‘Gene’ corresponds to all the specific ENSEMBL genes and ‘Sequence’ refers to the corresponding mRNA sequence (this was found by querying rest.ensembl.org. The data was stored in a .csv file
Phase 2: Model Training
Using the final data stored in the .csv, the randomForestRegressor model in Scikit learn was trained, producing a vectorizer and the trained model was stored. Any subsequent entries to the program would be using this trained model to make predictions.
Phase 3: Evaluating Predictions
We developed a front-end terminal interface for users to interact with the model - when entered a random RNA sequence, the query would be sent to the trained model and an output of the predicted percentage expression in each cell type was received. To evaluate the accuracy of the model, we conducted a correlation between the predicted values and the actual values produced by the model.
Citations
- Langlieb, J., Sachdev, N. S., Balderrama, K. S., Nadaf, N. M., Raj, M., Murray, E., Webber, J. T., Vanderburg, C., Gazestani, V., Tward, D., Mezias, C., Li, X., Cable, D. M., Norton, T., Mitra, P., Chen, F., & Macosko, E. Z. (2023). The cell type composition of the adult mouse brain revealed by single cell and spatial genomics. bioRxiv : the preprint server for biology, 2023.03.06.531307. https://doi.org/10.1101/2023.03.06.531307
Built With
- pandas
- pickle
- python
- scikit-learn
Log in or sign up for Devpost to join the conversation.