Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Differential Expression (Simplified) | Gene Expression Analysis and Reproducible Pipelines
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Python for Bioinformatics

bookChallenge: Differential Expression (Simplified)

Task

Swipe to start coding

Write a Python function that identifies genes with a fold change above a specified threshold between two conditions.

  • Compare each gene's normalized count in treatment_counts to its count in control_counts.
  • Calculate the fold change as the ratio of treatment to control for each gene.
  • If the control count is zero, treat division by zero by comparing treatment count directly to the threshold.
  • Return a list of gene names where the fold change is greater than the specified threshold.

Solution

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 3. ChapterΒ 4
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

close

bookChallenge: Differential Expression (Simplified)

Swipe to show menu

Task

Swipe to start coding

Write a Python function that identifies genes with a fold change above a specified threshold between two conditions.

  • Compare each gene's normalized count in treatment_counts to its count in control_counts.
  • Calculate the fold change as the ratio of treatment to control for each gene.
  • If the control count is zero, treat division by zero by comparing treatment count directly to the threshold.
  • Return a list of gene names where the fold change is greater than the specified threshold.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 3. ChapterΒ 4
single

single

some-alt