Challenge: Manipulating Genomic Data
Swipe to start coding
Write a function that takes a gene expression matrix, a vector of gene names, and a vector of sample names, and returns both the subsetted matrix and a vector of average expression values for each selected gene across the selected samples.
- Subset the input matrix to include only the specified genes (rows) and samples (columns).
- Calculate the average expression value for each selected gene across the selected samples.
- Return a list containing the subsetted matrix and the vector of average expression values.
Ratkaisu
Kiitos palautteestasi!
single
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme
Can you explain this in simpler terms?
What are the main points I should remember?
Can you give me an example?
Mahtavaa!
Completion arvosana parantunut arvoon 5
Challenge: Manipulating Genomic Data
Pyyhkäise näyttääksesi valikon
Swipe to start coding
Write a function that takes a gene expression matrix, a vector of gene names, and a vector of sample names, and returns both the subsetted matrix and a vector of average expression values for each selected gene across the selected samples.
- Subset the input matrix to include only the specified genes (rows) and samples (columns).
- Calculate the average expression value for each selected gene across the selected samples.
- Return a list containing the subsetted matrix and the vector of average expression values.
Ratkaisu
Kiitos palautteestasi!
single