Group Bioinformatics Assignments

Q2: Assignment: RNA-Seq Data Analysis. Analyze a provided RNA-Seq dataset and perform differential gene expression analysis. Present the differentially expressed genes, their functional annotations, and potential biological interpretations. The answer calculates average counts, fold change, and log2 fold change from a small sample CSV; use replicate-aware tools and adjusted p-values for a full study.

RNA-Seq Data Analysis

Solution and implementation for Q2 from Bioinformatics (bif).

2_rnaseq_differential_expression.py Download
import pandas as pd
import numpy as np

data = {
    "Gene": ["G1", "G2", "G3", "G4"],
    "Control": [10, 20, 30, 40],
    "Treated": [30, 10, 20, 80]
}

df = pd.DataFrame(data)

df["Change"] = df["Treated"] - df["Control"]
df["Fold Change"] = df["Treated"] / df["Control"]
df["Log2 Fold Change"] = np.log2(df["Fold Change"])

print("Gene Expression Data:")
print(df)

print("\nUpregulated Genes:")
print(df[df["Change"] > 0]["Gene"])

print("\nDownregulated Genes:")
print(df[df["Change"] < 0]["Gene"])

Other Questions in Bioinformatics

See All Available Questions
Download