Question: PROVIDE R CODE: data file ( assess _ data _ resit - 0 8 2 4 . Rdata ) , contains the following objects: -
PROVIDE R CODE:
data file assessdataresitRdatacontains the following objects:
Y: gene expression matrix withgenes along the rowsandsamples along the columnsfrom tumournormal tissue pairs.
patientdata: Matrix with metadata for each patient.
Perform the following steps R Code:
Transform the gene expression data using the formulaLogYand take the transpose.
Check if there are any problematic samples by calculating simple statistics on the data orand performing principal component analysis. Provide a plot to support your answer and explain why they are problematics.
Using the remaining sample pairs, we will perform a regressionbased differential expression analysis. We will use theglmfunction from theMASSpackage to perform the regression
perform a negative bionomial regression analysis to identify genes differentially expressed between normal and tumour samples including the tissue variable indicating if it is tumour or normal sample. Plot theappropriate logpvalue from your analysis
Compare the pvalues with and without inclusion of the tissue type and library size as a covariate, what do you observe? Which of the covariate has the biggest effect? Explain your answer with supporting plots, tables and further analysis if required. Plot the gene expression of the gene with the smallest pvalue across all samples. Is the geneexpression higher in the tumour or normal samples for this gene
incorporate the following code into it or Edit:
librarytidyverselibraryMASS
loaddataassessdataresit.Rdata"
idx
ccl :
boxplotlogYccl
x patientdata$tissueccl
z patientdata$patientccl
tmp dataframey Yidxcclx xz zlibsize colSumsYccl
out glmy ~ x z libsize, data tmpfamily poisson
pval summaryout$coefficients
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
