Skip to content

Commit

Permalink
Merge pull request #17 from GertjanBisschop/bugfix-lib
Browse files Browse the repository at this point in the history
Bugfix lib
  • Loading branch information
GertjanBisschop authored Nov 13, 2023
2 parents d111d8d + 8150e06 commit 807f9fb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion gimbleprep.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-

import os
from cli.interface import main
from gimbleprep.interface import main

if __name__ == '__main__':
main(os.path.dirname(os.path.realpath(__file__)))
10 changes: 6 additions & 4 deletions gimbleprep/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
-h, --help Show this
"""

import gimbleprep.runargs
import numpy as np
import tempfile
import pathlib
Expand All @@ -26,6 +25,9 @@
from tqdm import tqdm
import pysam
import pandas as pd

import gimbleprep.runargs as runargs

from timeit import default_timer as timer
from docopt import docopt

Expand Down Expand Up @@ -68,7 +70,7 @@ def fix_permissions(path):
os.chmod(_f, 0o664)
#os.chmod(root, 0o775)

class PreprocessParameterObj(lib.runargs.RunArgs):
class PreprocessParameterObj(runargs.RunArgs):
'''Sanitises command line arguments and stores parameters'''
def __init__(self, params, args):
super().__init__(params)
Expand Down Expand Up @@ -271,7 +273,7 @@ def main(params):
parameterObj = PreprocessParameterObj(params, args)
print("[+] Running 'gimble-preprocess'...")
preprocess(parameterObj)
print("[*] Total runtime was %s" % (lib.runargs.format_time(timer() - start_time)))
print("[*] Total runtime was %s" % (runargs.format_time(timer() - start_time)))
except KeyboardInterrupt:
print("\n[X] Interrupted by user after %s !\n" % (lib.runargs.format_time(timer() - start_time)))
print("\n[X] Interrupted by user after %s !\n" % (runargs.format_time(timer() - start_time)))
exit(-1)
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='gimbleprep',
version='0.0.2b4',
version='0.0.2b5',
description='Preprocess fasta, bam and vcf files ready to be used by gimble',
url='http://github.com/LohseLab/gimbleprep',
author='Lohse Lab',
Expand Down

0 comments on commit 807f9fb

Please sign in to comment.