Skip to content

Commit

Permalink
Cleanup after intense rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
jhiemstrawisc committed Nov 7, 2023
1 parent a2de961 commit 7ecce69
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 45 deletions.
1 change: 0 additions & 1 deletion Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ from spras import runner
import shutil
import yaml
from spras.dataset import Dataset
from spras.util import process_config
from spras.analysis import ml, summary, graphspace, cytoscape
from spras.dataset import Dataset
from spras.analysis import ml, summary, graphspace, cytoscape
Expand Down
5 changes: 2 additions & 3 deletions spras/allpairs.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@

import pandas as pd

from spras.prm import PRM
from spras.util import prepare_volume
from spras.containers import run_container
import spras.config as config
from spras.containers import prepare_volume, run_container
from spras.prm import PRM

__all__ = ['AllPairs']

Expand Down
9 changes: 1 addition & 8 deletions spras/analysis/cytoscape.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,8 @@
from shutil import rmtree
from typing import List, Union

<<<<<<< HEAD:spras/analysis/cytoscape.py
import spras.config as config
from spras.containers import run_container
from spras.util import prepare_volume
=======
import src.config as config
from src.containers import prepare_volume, run_container
>>>>>>> 75b746c (Move container framework to algorith run call and fix hash lengths):src/analysis/cytoscape.py
from spras.containers import prepare_volume, run_container


def run_cytoscape(pathways: List[Union[str, PurePath]], output_file: str, container_framework="docker") -> None:
Expand Down Expand Up @@ -55,7 +49,6 @@ def run_cytoscape(pathways: List[Union[str, PurePath]], output_file: str, contai

print('Running Cytoscape with arguments: {}'.format(' '.join(command)), flush=True)

# TODO consider making this a string in the config file instead of a Boolean
container_prefix = "py4cytoscape:v1"
out = run_container(container_framework,
container_prefix,
Expand Down
1 change: 1 addition & 0 deletions spras/containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import docker

import spras.config as config
from spras.util import hash_filename


def prepare_path_docker(orig_path: PurePath) -> str:
Expand Down
5 changes: 2 additions & 3 deletions spras/domino.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@

import pandas as pd

from spras.prm import PRM
from spras.util import prepare_volume
from spras.containers import run_container
import spras.config as config
from spras.containers import prepare_volume, run_container
from spras.prm import PRM

__all__ = ['DOMINO', 'pre_domino_id_transform', 'post_domino_id_transform']

Expand Down
5 changes: 2 additions & 3 deletions spras/meo.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@

import pandas as pd

from spras.prm import PRM
from spras.util import prepare_volume
from spras.containers import run_container
import spras.config as config
from spras.containers import prepare_volume, run_container
from spras.prm import PRM

__all__ = ['MEO', 'write_properties']

Expand Down
5 changes: 2 additions & 3 deletions spras/mincostflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@

import pandas as pd

from spras.prm import PRM
from spras.util import prepare_volume
from spras.containers import run_container
import spras.config as config
from spras.containers import prepare_volume, run_container
from spras.prm import PRM

__all__ = ['MinCostFlow']

Expand Down
5 changes: 2 additions & 3 deletions spras/omicsintegrator1.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@

import pandas as pd

from spras.prm import PRM
from spras.util import prepare_volume
from spras.containers import run_container
import spras.config as config
from spras.containers import prepare_volume, run_container
from spras.prm import PRM

__all__ = ['OmicsIntegrator1', 'write_conf']

Expand Down
6 changes: 3 additions & 3 deletions spras/omicsintegrator2.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

import pandas as pd

import spras.config as config
from spras.containers import prepare_volume, run_container
from spras.dataset import Dataset
from spras.prm import PRM
from spras.util import add_rank_column, prepare_volume
from spras.containers import run_container
import spras.config as config
from spras.util import add_rank_column

__all__ = ['OmicsIntegrator2']

Expand Down
5 changes: 2 additions & 3 deletions spras/pathlinker.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@

import pandas as pd

from spras.prm import PRM
from spras.util import prepare_volume
from spras.containers import run_container
import spras.config as config
from spras.containers import prepare_volume, run_container
from spras.prm import PRM

__all__ = ['PathLinker']

Expand Down
2 changes: 1 addition & 1 deletion test/test_config.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

import src.config as config
import spras.config as config


# Set up a dummy config for testing. For now, only include things that MUST exist in the dict
Expand Down
17 changes: 3 additions & 14 deletions test/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,9 @@

import pytest


from spras.util import (
hash_params_sha1_base32,
prepare_volume,
)

from spras.containers import (
convert_docker_path,
prepare_path_docker,
)
from src.util import (
hash_params_sha1_base32,
prepare_volume,
)
import spras.config as config
from spras.containers import convert_docker_path, prepare_path_docker, prepare_volume
from spras.util import hash_params_sha1_base32

config.init_from_file("config/config.yaml")

Expand Down

0 comments on commit 7ecce69

Please sign in to comment.