Skip to content

Commit

Permalink
add default values
Browse files Browse the repository at this point in the history
  • Loading branch information
hyoo committed May 15, 2019
1 parent eb12d9a commit 0d0cb45
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# topN_generator

```
$ python build.py --help
$ python build.py -h
usage: build.py [-h] [--top_n TOP_N] [--drug_descriptor {dragon7}]
[--cell_feature {rnaseq}]
[--format {csv,tsv,parquet,hdf5,feather}]
optional arguments:
-h, --help show this help message and exit
--top_n TOP_N Number of cancer types to be included
--top_n TOP_N Number of cancer types to be included. Default 6
--drug_descriptor {dragon7}
Drug descriptors
--cell_feature {rnaseq}
Cell line features
--format {csv,tsv,parquet,hdf5,feather}
Dataframe file format
```
Dataframe file format. Default hdf5
```
4 changes: 2 additions & 2 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
def parse_arguments(model_name=''):
parser = argparse.ArgumentParser()
parser.add_argument('--top_n', type=int, default=6,
help='Number of cancer types to be included')
help='Number of cancer types to be included. Default 6')
parser.add_argument('--drug_descriptor', type=str, default='dragon7',
choices=['dragon7'],
help='Drug descriptors')
Expand All @@ -24,7 +24,7 @@ def parse_arguments(model_name=''):
help='Cell line features')
parser.add_argument('--format', default='hdf5',
choices=['csv', 'tsv', 'parquet', 'hdf5', 'feather'],
help='Dataframe file format')
help='Dataframe file format. Default hdf5')

args, unparsed = parser.parse_known_args()
return args, unparsed
Expand Down

0 comments on commit 0d0cb45

Please sign in to comment.