Skip to content

Commit d3db2a9

Browse files
committed
diffuPy cli refactors.
1 parent a455e8d commit d3db2a9

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

src/diffupy/cli.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
import logging
77
import os
88
import pickle
9-
import sys
109
import time
1110

1211
import click
12+
from diffupath.constants import OUTPUT_DIR
1313
from diffupy.process_network import get_kernel_from_network_path
1414

1515
from .constants import OUTPUT, METHODS, EMOJI, RAW, CSV, JSON
@@ -93,7 +93,7 @@ def kernel(
9393
'-o', '--output',
9494
type=click.File('w'),
9595
help="Output file",
96-
default=sys.stdout,
96+
default=OUTPUT_DIR,
9797
)
9898
@click.option(
9999
'-m', '--method',
@@ -107,8 +107,8 @@ def kernel(
107107
'-1). For scoring methods that accept quantitative values (i.e., raw & z), node labels can also be codified '
108108
'with LogFC (in this case, set binarize==False).',
109109
type=bool,
110-
default=True,
111-
show_default=True,
110+
default=False,
111+
show_default=False,
112112
)
113113
@click.option(
114114
'-t', '--threshold',
@@ -121,8 +121,8 @@ def kernel(
121121
help='Codify node labels by applying threshold to | logFC | in input. If absolute_value is set to False,'
122122
'node labels will be signed.',
123123
type=bool,
124-
default=True,
125-
show_default=True,
124+
default=False,
125+
show_default=False,
126126
)
127127
@click.option(
128128
'-p', '--p_value',
@@ -141,11 +141,11 @@ def kernel(
141141
def diffuse(
142142
input: str,
143143
network: str,
144-
output: str = sys.stdout,
144+
output: str = OUTPUT_DIR,
145145
method: str = RAW,
146-
binarize: bool = True,
146+
binarize: bool = False,
147147
threshold: float = None,
148-
absolute_value: bool = True,
148+
absolute_value: bool = False,
149149
p_value: float = 0.05,
150150
output_format: str = CSV
151151
):

0 commit comments

Comments
 (0)