Skip to content

bailey-lab/map_fastqs_snakemake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

map_fastqs_snakemake

A program for mapping fastq files to a (bowtie2 indexed) reference genome with bwa-mem, then converting the output sam file to a sorted indexed bam file. This output file is suitable for viewing in UCSC genome browser or IGV, or for passing on to other analysis pipelines that need sorted indexed bam files.

This pipeline uses conda environments to standardize the software used for each run.

Installation:

conda create -c conda-forge -c bioconda -n snakemake snakemake
conda activate snakemake
  • setup the conda environment to use strict mode:
conda config --set channel_priority strict

Setup your environment:

  • Change directory to a folder where you want to run the analysis
  • clone this git repository into the folder

Usage:

  • Edit the config.yaml file using the instructions in the comments. Use a text editor that outputs unix line endings (e.g. vscode, notepad++, gedit, micro, emacs, vim, vi, etc.)
  • If snakemake is not your active conda environment, activate snakemake with:
conda activate snakemake

You can use this pipeline with locally installed copies of bwa and samtools, or you can have snakemake download copies of bwa and samtools automatically for you. If you choose to have snakemake do it, snakemake will install the programs in your current folder, in .snakemake/conda/verylongrandomstring

  • To run the script with your locally installed programs, use:
snakemake -s map_fastqs.smk --cores 4
  • To have snakemake use mamba (its default) to download programs, use:
snakemake -s map_fastqs.smk --cores 4 --use-conda
  • or (if you're using some other conda) use:
snakemake -s map_fastqs.smk --cores 4 --use-conda --conda-frontend conda

About

a snakemake pipeline for mapping fastq entries to a bowtie2 indexed reference genome

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages