| 1 | Cookbook {#cookbookpage} |
| 2 | ======== |
| 3 | |
| 4 | Two pipelines to call iSNVs from known and unknown reference sequences have been written in [snakemake](https://snakemake.readthedocs.io/en/stable/). |
| 5 | |
| 6 | The two pipelines are distributed along with iVar and are present in the[ pipeline/](https://github.com/andersen-lab/ivar/tree/master/pipeline) and [pipeline_field/](https://github.com/andersen-lab/ivar/tree/master/pipeline_field) fodlers respectively. |
| 7 | |
| 8 | For both pipelines, there are four parameters that will have to be set in beginning of the Snakefile. |
| 9 | |
| 10 | ``` |
| 11 | in_dir = "<input fastq files>" |
| 12 | out_dir = "<output directory>" |
| 13 | bed = "<bed-file-with-primer-positions>" |
| 14 | ref="<path to reference fasta>" |
| 15 | ``` |
| 16 | |
| 17 | <img src="https://raw.githubusercontent.com/andersen-lab/ivar/master/pipeline/pipeline.png" width="500" /> |
| 18 | |
| 19 | ### Call iSNVs from samples with known reference sequence |
| 20 | |
| 21 | [Link to Jupyter Notebook](https://github.com/andersen-lab/paper_2018_primalseq-ivar/blob/master/cookbook/CookBook.ipynb) |
| 22 | |
| 23 | [Link to pipeline](https://github.com/andersen-lab/ivar/tree/master/pipeline) |
| 24 | |
| 25 | #### Dependencies: |
| 26 | |
| 27 | * [iVar](https://github.com/andersen-lab/ivar) |
| 28 | * [samtools](https://htslib.org/) |
| 29 | * [bwa](https://github.com/lh3/bwa) |
| 30 | * [bedtools](https://bedtools.readthedocs.io/en/latest/) |
| 31 | |
| 32 | ### Call iSNVs from samples with unknown reference sequence |
| 33 | |
| 34 | [Link to pipeline](https://github.com/andersen-lab/ivar/tree/master/pipeline_field/) |
| 35 | |
| 36 | #### Dependencies: |
| 37 | |
| 38 | * [iVar](https://github.com/andersen-lab/ivar) |
| 39 | * [samtools](https://htslib.org/) |
| 40 | * [bwa](https://github.com/lh3/bwa) |
| 41 | * [bedtools](https://bedtools.readthedocs.io/en/latest/) |