resfinder.py uses gzip but doesn't import it
Issue #10
resolved
Traceback (most recent call last):
File "/srv/data/tools/git.repositories/resfinder/resfinder.py", line 608, in <module>
file_format = get_file_format(infile)
File "/srv/data/tools/git.repositories/resfinder/resfinder.py", line 456, in get_file_format
f = gzip.open(infile, "rb")
NameError: name 'gzip' is not defined
If passing gz input files with kma you hit the code section which would open with gzip but gzip isn’t in the headers
from __future__ import division
import sys
import os
import time
import random
import re
import subprocess
from argparse import ArgumentParser
from tabulate import tabulate
import collections
import pprint
import json
from distutils.spawn import find_executable
from cgecore.blaster import Blaster
from cgecore.cgefinder import CGEFinder
to correct add
import gzip
Comments (2)
-
-
- changed status to resolved
- Log in to comment
Hello Kim,
Thank you for your interest in ResFinder and your email.
My fault, I thought I had added the gzip module. I will fix it in a moment.
Sorry for the inconvenience.
Alfred