Question: Data Extraction and Standardization The data file 'gene _ expression.txt ' gives a table of gene expression values of genes in 5 replicates from an
Data Extraction and Standardization
The data file 'geneexpression.txt gives a table of gene expression values of genes in replicates from an RNAseq experiment. Each line of the file gives expression values for one gene.
a Write a Python script that reads the file, standardizes the expression values and saves them in a new file.
a Write a function for standardization, it should take a list of numbers and return their standardized values as a tuple or list.
b Call the function for each gene in your script, save the standardized values as a table in your output file.
Standardization means converting an X variable distributed with normal distribution into value, which is distributed by standard normal distribution. The formula is as follows:
You can calculate mean and std of a gene by using:
import numpy as np
#dotsx are expression values of a gene
mean mean
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
