Question: Problem 1 , part ( i ) . Download DNASeqs.RData and then load it into your R workspace ( see HW 8 for how to
Problem part i
Download DNASeqs.RData and then load it into your R workspace see HW for how to load external RData files The data frame dna.seq has rows and columns, where each row vector is the DNA sequence of some protein. The length of the sequence is and each column represents one nucleotide. Run the following code to compute the distance matrix, dna.dist, which will be used for hierarchical clustering.
n nrowdnaseq
D matrix nrown ncoln # create an empty nbyn matrix
row.namesD row.namesdnaseq
for i in :n
for j in :i
Di j sumdnaseqi dna.seqj
# convert the numeric matrix D to a "distance matrix" object
dna.dist asdistD
According to dna.dist, what is the distance between Pbe and Pme
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
