Skip to content

Commit

Permalink
Visualization code bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jveldridge committed Feb 8, 2014
1 parent e9ea331 commit 03d9ece
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions makeResultsWebsite.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ def parse_args(raw_args):
return args

def run(args):
index_file = '%s/viz_files/%s' % (hotnet.__file__.rsplit('/', 1)[0], VIZ_INDEX)
subnetworks_file = '%s/viz_files/%s' % (hotnet.__file__.rsplit('/', 1)[0], VIZ_SUBNETWORKS)
index_file = '%s/viz_files/%s' % (hotnet2.__file__.rsplit('/', 1)[0], VIZ_INDEX)
subnetworks_file = '%s/viz_files/%s' % (hotnet2.__file__.rsplit('/', 1)[0], VIZ_SUBNETWORKS)

# create output directory if doesn't exist; warn if it exists and is not empty
outdir = args.output_directory
Expand Down
4 changes: 2 additions & 2 deletions simpleRun.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def run(args):
# find smallest delta
deltas = ft.get_deltas_for_network(args.permuted_networks_path, heat, INFMAT_NAME,
infmat_index, MAX_CC_SIZES,
args.num_permutations, args.parallel)
args.num_permutations, args.parallel)

# and run HotNet with the median delta for each size
run_deltas = [np.median(deltas[size]) for size in deltas]
Expand All @@ -92,7 +92,7 @@ def run(args):
edges = hnio.load_ppi_edges(args.edge_file) if args.edge_file else None
index_file = '%s/viz_files/%s' % (hotnet2.__file__.rsplit('/', 1)[0], VIZ_INDEX)
subnetworks_file = '%s/viz_files/%s' % (hotnet2.__file__.rsplit('/', 1)[0], VIZ_SUBNETWORKS)
gene2index = dict([(gene, index) for index, gene in gene_index.iteritems()])
gene2index = dict([(gene, index) for index, gene in infmat_index.iteritems()])

for delta in run_deltas:
# create output directory
Expand Down

0 comments on commit 03d9ece

Please sign in to comment.