Skip to content

Commit 2b41801

Browse files
committed
fixes to preserve previous parsing syntax w/updated imports
1 parent 6eafc3f commit 2b41801

File tree

6 files changed

+10
-7
lines changed

6 files changed

+10
-7
lines changed

cmapPy/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
from .clue_api_client import *
2-
from .pandasGEXpress import *
3-
from .set_io import *

cmapPy/pandasGEXpress/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import sys
2+
sys.path.insert(0, "../..")
3+
from cmapPy.pandasGEXpress.parse import parse as parse

cmapPy/pandasGEXpress/concat_gctoo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def main():
128128
# Parse each file and append to a list
129129
gctoos = []
130130
for f in files:
131-
gctoos.append(parse.parse(f))
131+
gctoos.append(parse(f))
132132

133133
# Create concatenated gctoo object
134134
if args.concat_direction == "horiz":

cmapPy/pandasGEXpress/parse.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,15 @@
77
Note: Supports GCT1.2, GCT1.3, and GCTX1.0 files.
88
"""
99
import sys
10-
sys.path.insert(0, "../..")
10+
sys.path.insert(0, "../../")
1111
import logging
1212
from cmapPy.pandasGEXpress import setup_GCToo_logger as setup_logger
1313
from cmapPy.pandasGEXpress import parse_gct as parse_gct
1414
from cmapPy.pandasGEXpress import parse_gctx as parse_gctx
1515

16+
import parse_gct as parse_gct
17+
import parse_gctx as parse_gctx
18+
1619
__author__ = "Oana Enache"
1720
__email__ = "[email protected]"
1821

cmapPy/pandasGEXpress/parse_gctx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import numpy as np
77
import pandas as pd
88
import h5py
9-
import cmapPy.pandasGEXpress.GCToo as GCToo
9+
from cmapPy.pandasGEXpress import GCToo as GCToo
1010

1111
__author__ = "Oana Enache"
1212
__email__ = "[email protected]"

cmapPy/pandasGEXpress/tests/test_write_gctx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import sys
2-
sys.path.insert(0, "../../..")
2+
sys.path.insert(0, "../../../")
33
import logging
44
from cmapPy.pandasGEXpress import setup_GCToo_logger as setup_logger
55
import unittest

0 commit comments

Comments
 (0)