Skip to content

Commit

Permalink
fix import error
Browse files Browse the repository at this point in the history
  • Loading branch information
GertjanBisschop committed Nov 5, 2023
1 parent d111d8d commit 6c08c42
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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)

0 comments on commit 6c08c42

Please sign in to comment.