Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

With the following matlab code, and the filepath being a txt file of RNAseq gene expression data of 500 cancer patients (http://m.uploadedit.com/bbtc/1510541260973.txt) : Using the

With the following matlab code, and the filepath being a txt file of RNAseq gene expression data of 500 cancer patients (http://m.uploadedit.com/bbtc/1510541260973.txt) :

image text in transcribed

Using the randi function (if you use MATLAB) select randomly 2,000 genes out of 18,026 and 50 patients out of 500 patients in this dataset (so now you have a matrix of 2,000 by 50) and perform the following clustering approaches 1- use Kmeans clustering and cluster these genes into 20 clusters--- note you cluster genes and not patients. Plot the centers of each cluster and report the number of genes in each cluster. Do you think you need to increase or decrease the number of cluster in order to have a better clustering for these data. 2- do the same using hierarchical clustering and display dendrogram and heat map of this clustering.

fid fopen (filepath, r InputTextl -textsean (fid, %s. ,1,' delimiter' ,' ","HeaderLines. ,0, TreatAsEmpty,NA,na', "collectoutput,true) Numcolnumel(strsplit (char InputTextl1)),)) fclose(fid) fid- fopen (filepath,'r'); % InputText1 textscan (fid, streat ( '%s' ,repmat ( 'BE, ,1,NumCol-1)),'delimiter','\t','HeaderLines' ,1, - TreatAsEmpty' , { ' NA. , na'),' collectoutput, , true) ; felose(fid pan-genes strtok (InputText1(1),'-) ; pan mRNAs- InputText1 (2) pan mRNAs (stremp (pan genes,, pan-genes ( stremp (pan-genes,-?)) - [ ] ; fid fopen (filepath, r InputTextl -textsean (fid, %s. ,1,' delimiter' ,' ","HeaderLines. ,0, TreatAsEmpty,NA,na', "collectoutput,true) Numcolnumel(strsplit (char InputTextl1)),)) fclose(fid) fid- fopen (filepath,'r'); % InputText1 textscan (fid, streat ( '%s' ,repmat ( 'BE, ,1,NumCol-1)),'delimiter','\t','HeaderLines' ,1, - TreatAsEmpty' , { ' NA. , na'),' collectoutput, , true) ; felose(fid pan-genes strtok (InputText1(1),'-) ; pan mRNAs- InputText1 (2) pan mRNAs (stremp (pan genes,, pan-genes ( stremp (pan-genes,-?)) - [ ]

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Sybase Database Administrators Handbook

Authors: Brian Hitchcock

1st Edition

0133574776, 978-0133574777

More Books

Students also viewed these Databases questions

Question

Define the term finite element?

Answered: 1 week ago

Question

=+j Identify the challenges of training an international workforce.

Answered: 1 week ago