Skip to content

Instantly share code, notes, and snippets.

@yk-tanigawa
Created February 23, 2016 02:12
Show Gist options
  • Save yk-tanigawa/8491a953b520b68e6b72 to your computer and use it in GitHub Desktop.
Save yk-tanigawa/8491a953b520b68e6b72 to your computer and use it in GitHub Desktop.
#usage: make SRA=XXXXX.sra
## commands
FASTQ-DUMP = /somewhere/fastq-dump
## files
FASTQ1 = $(SRA:%.sra=%_1.fastq)
FASTQ2 = $(SRA:%.sra=%_2.fastq)
all: $(FASTQ1) $(FASTQ2)
# obtain paired-end fastq files from sra file
$(FASTQ1) $(FASTQ2): $(SRA)
$(FASTQ-DUMP) --qual-filter --split-files $<
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment