Skip to content

Commit

Permalink
fix download_genome bug
Browse files Browse the repository at this point in the history
  • Loading branch information
simonvh committed Apr 3, 2017
1 parent 23f96a8 commit cee168f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gimmemotifs/genome_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ def download_genome(genomebuild, genome_dir):
sys.exit(1)

sys.stderr.write("Unpacking\n")
genome_fa = os.path.basename(genome_fa)
if genome_fa.endswith("tar.gz"):
cmd = "tar -C {0} -xvzf {1} && rm {1}".format(genome_dir, genome_fa)
else:
Expand Down

0 comments on commit cee168f

Please sign in to comment.