Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge: Manipulating Genomic Data | Reproducible and Genomic-Style Analysis
R for Biologists and Bioinformatics

bookChallenge: Manipulating Genomic Data

Opgave

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.

Løsning

Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 4. Kapitel 2
single

single

Spørg AI

expand

Spørg AI

ChatGPT

Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat

Suggested prompts:

Can you explain this in simpler terms?

What are the main points I should remember?

Can you give me an example?

close

bookChallenge: Manipulating Genomic Data

Stryg for at vise menuen

Opgave

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.

Løsning

Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 4. Kapitel 2
single

single

some-alt