From 0d8f7834ed5f93fd5a753aec6bb06b76e5153f38 Mon Sep 17 00:00:00 2001 From: StarSkyZheng Date: Thu, 10 Dec 2020 17:10:38 +0800 Subject: [PATCH] Update read_store.cpp --- src/fsa/read_store.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fsa/read_store.cpp b/src/fsa/read_store.cpp index 9bb95f3..546e68d 100644 --- a/src/fsa/read_store.cpp +++ b/src/fsa/read_store.cpp @@ -46,9 +46,9 @@ void ReadStore::SetNameToId(const std::string &name, int id) { void ReadStore::Load(const std::string &fname, const std::string &type, bool all, const std::unordered_set& seqids) { std::string t = type != "" ? type : DetectFileType(fname); - if (t == "fasta" || t == "fasta.gz") { + if (t == "fasta" || t == "fasta.gz" || t == "fa" || t == "fa.gz" ) { LoadFasta(fname, all, seqids); - } else if (t == "fastq" || t == "fastq.gz") { + } else if (t == "fastq" || t == "fastq.gz" || t == "fq" || t == "fq.gz" ) { LoadFastq(fname, all, seqids); } else if (t == "fofn") { LoadFofn(fname, all, seqids);