Skip to content

Commit

Permalink
Fix output delimiter selection for mp script
Browse files Browse the repository at this point in the history
  • Loading branch information
cflerin committed Jun 8, 2020
1 parent 264fc7e commit 321d670
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/arboreto_with_multiprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
from arboreto.core import SGBM_KWARGS, RF_KWARGS, EARLY_STOP_WINDOW_LENGTH
from arboreto.core import to_tf_matrix, target_gene_indices, infer_partial_network

from pyscenic.cli.utils import load_exp_matrix
from pyscenic.cli.utils import load_exp_matrix, suffixes_to_separator
from pathlib import PurePath


################################################################################
Expand Down Expand Up @@ -126,5 +127,6 @@ def run_infer_partial_network(target_gene_index):
end_time = time.time()
print(f'Done in {end_time - start_time} seconds.', file=sys.stdout)

adj.to_csv(args.output, index=False, sep='\t')
extension = PurePath(args.output).suffixes
adj.to_csv(args.output, index=False, sep=suffixes_to_separator(extension))

0 comments on commit 321d670

Please sign in to comment.