Challenge: Differential Expression (Simplified)
Uppgift
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_countsto its count incontrol_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.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 3. Kapitel 4
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal
Suggested prompts:
Can you explain this in simpler terms?
What are the main takeaways from this?
Can you give me an example?
Fantastiskt!
Completion betyg förbättrat till 6.25
Challenge: Differential Expression (Simplified)
Svep för att visa menyn
Uppgift
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_countsto its count incontrol_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.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 3. Kapitel 4
single