predict_NVU | R Documentation |
This function predicts the cell type of a given gene in the Neurovascular Unit (NVU) using a pre-trained XGBoost model.
predict_NVU(gene)
gene |
A string representing the gene for which the cell type is being predicted. |
The function loads a pre-trained XGBoost model from the file 'XGboost_allattr.rds'. The function then retrieves the attributes for the gene using the Medline database and calculates the TF-IDF scores. The XGBoost model is then used to predict the cell type based on these attributes. The function filters out predictions with a probability of less than 0.55. The average prediction scores for each cell type are calculated and returned in a data frame.
A data frame containing the predicted cell type scores for the gene.
## Not run:
predict_NVU("ABCA1")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.