Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started