Skip to content
Snippets Groups Projects
Commit 7b44a3d6 authored by Bienchen's avatar Bienchen
Browse files

Simplifications

parent bd7accf6
No related branches found
No related tags found
No related merge requests found
...@@ -235,7 +235,9 @@ class PM3OptionsNamespace(object): ...@@ -235,7 +235,9 @@ class PM3OptionsNamespace(object):
"argument 'trg:' defining the "+ "argument 'trg:' defining the "+
"target sequence name, empty one "+ "target sequence name, empty one "+
"found: '%s'" % ' '.join(argstr), 14) "found: '%s'" % ' '.join(argstr), 14)
return trgname, seqfile helper.FileExists("Alignment", 12, seqfile)
is_gz = helper.FileGzip("Alignment", 13, seqfile)
return trgname, seqfile, is_gz
def _PostProcessAlignment(self): def _PostProcessAlignment(self):
#pylint: disable=no-member #pylint: disable=no-member
...@@ -247,9 +249,7 @@ class PM3OptionsNamespace(object): ...@@ -247,9 +249,7 @@ class PM3OptionsNamespace(object):
self.alignments = seq.AlignmentList() self.alignments = seq.AlignmentList()
if self.fasta: if self.fasta:
for src in self.fasta: for src in self.fasta:
trgname, seqfile = self._FetchAlnFromFastaOpt(src) trgname, seqfile, is_gz = self._FetchAlnFromFastaOpt(src)
helper.FileExists("Alignment", 12, seqfile)
is_gz = helper.FileGzip("Alignment", 13, seqfile)
readfile = seqfile readfile = seqfile
if is_gz: if is_gz:
zip_fh = gzip.open(seqfile) zip_fh = gzip.open(seqfile)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment