ids <- c("ENST00000376207.10", "ENST00000376199.7")Day 1 Challenges
RAdelaide 2024
Some Challenges
Working With Text Strings
- Given a vector of Transcript IDs with versions, remove the version number?
- Add the ‘chr’ prefix to these chromosomes
chr <- c(1:22, "X", "Y", "M")- Pull the chromosome out of these cytogenetic bands
cyto <- c("Xp11.23", "11q2.3", "2p7.1")- Convert the following genes from human to mouse
genes <- c("FOXP3", "IL2RA", "CTLA4")- Remove the suffix “.bam” from these filenames
bams <- c("rna_bamboo1.bam", "rna_rice1.bam", "rna_wheat1.bam")- Correct the responses to be consistent (choose the format)
response <- c("Y", "yes", "No", "no")- Load the pcr data using the following code then create create two additional columns
treatment: containing the CONTROL/INFECTED statustimepoint: with all times ending in ‘hr’
pcr <- read_excel("data/RealTimeData.xlsx") %>%
dplyr::rename(sample = `...1`)