Skip to content

Commit

Permalink
fixy :/
Browse files Browse the repository at this point in the history
  • Loading branch information
meren committed Nov 10, 2014
1 parent b5abf07 commit 81cbb3f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions bin/o-generate-gephi-network-file
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@ def main(environment_file, sample_mapping_file = None, unit_mapping_file = None,

if unit_mapping_file:
unit_mapping = utils.get_sample_mapping_dict(unit_mapping_file)

output_file = '.'.join(environment_file.split('.')[:-1]) + '.gexf'

if len(environment_file.split('.')) > 1:
output_file = '.'.join(environment_file.split('.')[:-1]) + '.gexf'
else:
output_file = environment_file + '.gexf'

utils.generate_gexf_network_file(oligos,
samples_dict,
unit_percents,
Expand Down

0 comments on commit 81cbb3f

Please sign in to comment.