Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
malachig committed Jul 18, 2023
1 parent 87d9c35 commit e36a720
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _posts/0009-08-01-Integrated_Assignment_Answers.md
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,7 @@ short_names=c("T1","T2","T3","C1","C2","C3")
#Calculate the FPKM sum for all 6 libraries
gene_expression[,"sum"]=apply(gene_expression[,data_columns], 1, sum)

#Identify genes where the sum of FPKM across all samples is above some arbitrary threshold
i = which(gene_expression[,"sum"] > 5)

#Calculate the correlation between all pairs of data
Expand All @@ -502,6 +503,7 @@ data_colors=c("tomato1","tomato2","tomato3","royalblue1","royalblue2","royalblue
#This step calculates 2-dimensional coordinates to plot points for each library
#Libraries with similar expression patterns (highly correlated to each other) should group together

#note that the x and y display limits will have to be adjusted for each dataset depending on the amount of variability
d=1-r
mds=cmdscale(d, k=2, eig=TRUE)
par(mfrow=c(1,1))
Expand Down

0 comments on commit e36a720

Please sign in to comment.