---
title: "Peve epiMOD Annotation"
author: "Steven Roberts"
date: "`r format(Sys.time(), '%d %B, %Y')`"  
output: 
  github_document:
    toc: true
    toc_depth: 3
    number_sections: true
    html_preview: true
  html_document:
    theme: readable
    highlight: zenburn
    toc: true
    toc_float: true
    number_sections: true
    code_folding: show
    code_download: true
editor_options: 
  markdown: 
    wrap: sentence
---

```{r setup, include=FALSE}
library(knitr)
library(tidyverse)
library(kableExtra)
library(DT)
library(Biostrings)
library(tm)
knitr::opts_chunk$set(
  echo = TRUE,         # Display code chunks
  eval = FALSE,         # Evaluate code chunks
  warning = FALSE,     # Hide warnings
  message = FALSE,     # Hide messages
  fig.width = 6,       # Set plot width in inches
  fig.height = 4,      # Set plot height in inches
  fig.align = "center", # Align plots to the center
  comment = ""         # Prevents appending '##' to beginning of lines in code output
)
```


Peve

# proteins 
https://gannet.fish.washington.edu/seashell/snaps/Porites_evermanni_v1.annot.pep.fa



```{bash}
cd ../data
curl -o Porites_evermanni_v1.annot.pep.fa https://gannet.fish.washington.edu/seashell/snaps/Porites_evermanni_v1.annot.pep.fa

```


```{bash}
head ../data/Porites_evermanni_v1.annot.pep.fa
```



---

```{bash}
mkdir ../output/06-Peve-epimods-blast/

/home/shared/ncbi-blast-2.15.0+/bin/makeblastdb \
-in ../data/Porites_evermanni_v1.annot.pep.fa \
-dbtype prot \
-out ../output/06-Peve-epimods-blast/Porites_evermanni_v1.annot.pep
```





```{bash}
fasta="../data/Machinery.fasta"

/home/shared/ncbi-blast-2.15.0+/bin/blastp \
-query $fasta \
-db ../output/06-Peve-epimods-blast/Porites_evermanni_v1.annot.pep \
-out ../output/06-Peve-epimods-blast/Mach-blastp-Peve_out.tab \
-evalue 1E-05 \
-num_threads 48 \
-max_target_seqs 1 \
-max_hsps 1 \
-outfmt 6
```

```{r, engine='bash', eval=TRUE}       
wc -l ../output/06-Peve-epimods-blast/Mach-blastp-Peve_out.tab
```

```{r, engine='bash', eval=TRUE}        
head ../output/06-Peve-epimods-blast/Mach-blastp-Peve_out.tab
```