Created
February 23, 2016 02:34
-
-
Save yk-tanigawa/72fb4d2f560fc7ea3cc4 to your computer and use it in GitHub Desktop.
NCBI SRA (Short Read Archive) 形式から fastq 形式に変換する Makefile ref: http://qiita.com/yk-tanigawa/items/f78834d697daf23378b0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## commands | |
FASTQ-DUMP = /somewhere/fastq-dump | |
## files | |
FASTQ1 = $(SRA:%.sra=%_1.fastq) | |
FASTQ2 = $(SRA:%.sra=%_2.fastq) | |
all: $(FASTQ1) $(FASTQ2) | |
# obtain the paired-end fastq files from a given sra file | |
$(FASTQ1) $(FASTQ2): $(SRA) | |
$(FASTQ-DUMP) --qual-filter --split-files $< |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## commands | |
FASTQ-DUMP = /somewhere/fastq-dump | |
## files | |
FASTQ = $(SRA:%.sra=%.fastq) | |
all: $(FASTQ) | |
# obtain the fastq file from a given sra file | |
$(FASTQ): $(SRA) | |
$(FASTQ-DUMP) --qual-filter $< |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment