library(data.table)
library(tidyverse)
genes_merged <- read.csv("../../data/merged_genes_full.csv",row.names = 1, header= TRUE)
gene_list = genes_merged[,"gene_names"]
genes_merged <- column_to_rownames(genes_merged,var="gene_names")
```r
ref_gene <- as.numeric(genes_merged[\acnA\,])
# gene_count =as.data.frame(rowSums(genes_merged))
# gene_count <- tibble::rownames_to_column(gene_count, \gene_name\)
# Calculate Jaccard Similarity
gene_matches <- colSums(t(genes_merged)+ref_gene==2)
gene_totalhits <- colSums(t(genes_merged)+ref_gene>0)
fave_genes <- sort(gene_matches/gene_totalhits, decreasing = TRUE)
<!-- rnb-source-end -->
<!-- rnb-chunk-end -->
<!-- rnb-text-begin -->
Generates a confusion matrix of the top 10 best hits
<!-- rnb-text-end -->
<!-- rnb-chunk-begin -->
<!-- rnb-source-begin eyJkYXRhIjoiYGBgclxuYGBgclxuIyBDaGVjayB0aGUgY29uZnVzaW9uIG1hdHJpeCBvZiB0aGUgdG9wIDEwIGJlc3QgbWF0Y2hlZCBnZW5lc1xudGVzdCA8LSBsYXBwbHkobmFtZXMoaGVhZChmYXZlX2dlbmVzLCAxMCkpLCBmdW5jdGlvbihnZW5lX25hbWUpe1xuICB0YWJsZShhcy5udW1lcmljKGdlbmVzX21lcmdlZFtcXGFjbkFcXCxdKSwgXG4gICAgICAgIGFzLm51bWVyaWMoZ2VuZXNfbWVyZ2VkW2dlbmVfbmFtZSxdKSlcbn0pXG5gYGBcbmBgYCJ9 -->
```r
```r
# Check the confusion matrix of the top 10 best matched genes
test <- lapply(names(head(fave_genes, 10)), function(gene_name){
table(as.numeric(genes_merged[\acnA\,]),
as.numeric(genes_merged[gene_name,]))
})
<!-- rnb-source-end -->
<!-- rnb-chunk-end -->
<!-- rnb-text-begin -->
<!-- rnb-text-end -->
<!-- rnb-chunk-begin -->
<!-- rnb-source-begin eyJkYXRhIjoiYGBgclxuYGBgclxuIyBwbG90IHRoZSBvcmRlcmVkIGRhdGEgYmFzZWQgb24gc2ltaWxhcml0eSBzY29yZVxueF9zdGVwcyA9IHNlcSgxLCBsZW5ndGgoZmF2ZV9nZW5lcyktMSwgMSlcbnlfc3RlcHMgPSBmYXZlX2dlbmVzWy0xXVxuZGYgPSBkYXRhLmZyYW1lKHg9eF9zdGVwcyx5PXlfc3RlcHMpXG5nZ3Bsb3QoZGF0YT1kZixtYXBwaW5nID0gYWVzKHgsIHkpKStnZW9tX3BvaW50KClcbmBgYFxuYGBgIn0= -->
```r
```r
# plot the ordered data based on similarity score
x_steps = seq(1, length(fave_genes)-1, 1)
y_steps = fave_genes[-1]
df = data.frame(x=x_steps,y=y_steps)
ggplot(data=df,mapping = aes(x, y))+geom_point()
<!-- rnb-source-end -->
<!-- rnb-plot-begin -->
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA2sAAAIcCAMAAABfO8ZvAAAC31BMVEUAAAABAQECAgIDAwMEBAQFBQUGBgYHBwcICAgJCQkKCgoLCwsMDAwNDQ0ODg4PDw8QEBARERESEhITExMUFBQVFRUWFhYXFxcYGBgZGRkaGhobGxscHBwdHR0eHh4fHx8gICAhISEjIyMkJCQlJSUmJiYnJycoKCgpKSkqKiorKyssLCwtLS0uLi4vLy8wMDAyMjIzMzM0NDQ1NTU2NjY3Nzc4ODg5OTk6Ojo7Ozs8PDw9PT0+Pj4/Pz9AQEBBQUFCQkJERERFRUVHR0dISEhKSkpLS0tMTExNTU1OTk5PT09QUFBRUVFSUlJTU1NUVFRVVVVWVlZXV1dYWFhZWVlaWlpbW1tcXFxdXV1eXl5fX19gYGBhYWFiYmJjY2NkZGRlZWVmZmZnZ2doaGhpaWlqampra2tsbGxtbW1ubm5vb29wcHBxcXFycnJzc3N0dHR1dXV3d3d4eHh6enp7e3t8fHx9fX1+fn5/f3+AgICBgYGCgoKDg4OEhISFhYWGhoaHh4eIiIiJiYmKioqMjIyNjY2Ojo6Pj4+QkJCRkZGSkpKTk5OUlJSVlZWWlpaXl5eZmZmampqbm5udnZ2enp6fn5+goKChoaGioqKjo6OkpKS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83MR2VRecVq53DpTQbNFsYKrjOta05f+FpnVi2fPueo5F6n5uYhcWD3Z23d7y0wFzRbHCq0yXaMlRDbINSGyQa4JkQ1yTYhskGtCZINcEyIb5JoQ2SDXhMgGuSZENsg1IbJBrgmRDXKta7ijdM3w482lL+b9QsT4yLXu4YLpf6y8ePiJhbsu3wpyrXvY/KqZlYsOeCrvlyFaINe6iBWlRb1fy/tFiFbItW5iQemkvF+CaIlc6yIG39Vz5Ja8X4RohVzrIq6Z+IMDF+T9IkQr5Fr38MR+l1W+VFqe98sQLZBrXcPA21+7ozL4jle+kPcLEeMj17qGq0v3DD/+36Tz834hYnzkmhDZINeEyAa5JkQ2yDUhskGuCZENck2IbJBrQmSDXBMiG+SaENkg14TIBrkmRDbINSGyQa4JkQ3/D+5ZkIBLDmItAAAAAElFTkSuQmCC" />
<!-- rnb-plot-end -->
<!-- rnb-source-begin eyJkYXRhIjoiYGBgclxuYGBgclxueGxhYihcXFJhbmsgT3JkZXJcXClcbmBgYFxuYGBgIn0= -->
```r
```r
xlab(\Rank Order\)
<!-- rnb-source-end -->
<!-- rnb-output-begin eyJkYXRhIjoiJHhcblsxXSBcXFJhbmsgT3JkZXJcXFxuXG5hdHRyKCxcXGNsYXNzXFwpXG5bMV0gXFxsYWJlbHNcXFxuIn0= -->
$x [1] Order
attr(,) [1]
<!-- rnb-output-end -->
<!-- rnb-source-begin eyJkYXRhIjoiYGBgclxuYGBgclxueWxhYihcXFNpbWlsYXJpdHkgU2NvcmVcXClcbmBgYFxuYGBgIn0= -->
```r
```r
ylab(\Similarity Score\)
<!-- rnb-source-end -->
<!-- rnb-output-begin eyJkYXRhIjoiJHlcblsxXSBcXFNpbWlsYXJpdHkgU2NvcmVcXFxuXG5hdHRyKCxcXGNsYXNzXFwpXG5bMV0gXFxsYWJlbHNcXFxuIn0= -->
$y [1] Score
attr(,) [1]
<!-- rnb-output-end -->
<!-- rnb-chunk-end -->
<!-- rnb-text-begin -->
nifH is kinda interesting - lots of metal binding genes associated amidst the other nif genes
<!-- rnb-text-end -->
<!-- rnb-chunk-begin -->
<!-- rnb-source-begin eyJkYXRhIjoiYGBgclxucm93Lm5hbWVzKGphY2NhcmRfbWF0cml4KVxuXG5gYGAifQ== -->
```r
row.names(jaccard_matrix)
Error in row.names(jaccard_matrix) : object 'jaccard_matrix' not found