I see a lot of people giving their opinions about chat AI without much examples of real-world application. So here is my concrete experience. In two weeks I have rewritten, from scratch, one of my genomics pipelines which can analyse 1000 clinical exomes is a few hours.
It included:
It works to:
Final results:
I use chatGPT plus as a paid member for access without restriction. Instead of googling for keywords that match, I either post a code example and ask for specific fixes or simply describe the request. Here is a very simple example, but I have done some very complex request with great success.
Example:
- I have an R dataframe “df” with columns “genotype” “variant” “gene” “sample” “inheritance_model”.
- Add a new column “flag”.
- Group by “gene” and “sample”,
- then add the value 1 to “flag” for rows where “genotype” > 1 and “inheritance_model” == AR.
Result:
library(dplyr)
df <- df %>%
group_by(gene, sample) %>%
mutate(flag = ifelse(genotype > 1 & inheritance_model == "AR", 1, 0))
My real-world use is usually far more complex than this and uses relatively large sets of code. However, my queries are broken up or pre-empted with an introductory discussion such that, in context, the final request is as simple as the one above.
Final thought
Whatever sales reps or armchair philosophers say about the rapidly approaching era of AI, if you start using these tools now you will rapidly understand how powerful they will become in many aspects of life.
(ChatGPT also picked this nice blogpost title for me when I fed it this blogpost and asked for a suggestion).