Skip to content

pommevilla/snakemake-genome-assembly-practice

Repository files navigation

Snakemake genome assembly

This is a Snakemake pipeline that downloads reads from SRA, assembles them using Unicycler, and outputs various quality metric files and plots. The steps in the pipeline are:

Running the pipeline

  • Edit the config file in the indicated places
  • Install snakemake. A bare conda/mamba environment is recommended (ie., created with mamba create -c conda-forge -c bioconda -n snakemake snakemake)
  • Edit config/config.yml.
    • sra_list should be the path to a newline-separated file of SRA accessions.
    • Enter the path to the checkm2 database on your system. If you don't have it installed, you can download it directly from here (source) and put enter the path into the config file.
    • By default, the pipeline will put everything into the output folder - change the path if you'd like it to be put somewhere else
  • Edit slurm/config.yaml.
    • In particular, you'll need to edit the default-resources entry with the default partition you'd like to use to submit slurm jobs to.
  • Run the pipeline with snakemake --use-conda -c

Assumptions

  • The fastq files dumped from SRA are paired-end (ie, after dumping, they'll be named something like SRRXXXXX_pass_1.fastq.gz and SRRXXXXX_pass_2.fastq.gz)

Workflow

To do