Skip to content

Instantly share code, notes, and snippets.

View beardymcjohnface's full-sized avatar

Michael Roach beardymcjohnface

View GitHub Profile
@beardymcjohnface
beardymcjohnface / README.md
Last active October 16, 2023 01:00
MetaSnek fastq_finder sample parsing

Parsing sample reads

There are two ways to parse samples with this MetaSnek: you can supply a directory where your reads are, or you can supply a Tab-Separated Values (TSV) file with your sample names and file paths.

Samples from reads directory

If given a directory, reads files will be identified like so: pattern = r".(fasta|fastq|fq)(.gz)?$". i.e. fasta or fastq files, optionally gzipped. Sample names will be derived from the read file name.

@beardymcjohnface
beardymcjohnface / config.yaml
Created August 24, 2022 05:41
Example Snakefile for installing databases
# config settings the user is allowed to tweak
input:
output:
customDatabaseDirectory: