Skip to content

Commit

Permalink
Update usage instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
FanwangM committed Dec 2, 2021
1 parent 746f191 commit 14a0a55
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,18 @@ strategies.
optional arguments:
-h, --help show this help message and exit
-mol MOL Input file with descriptors.
-sep SEP Separator for input file.
-clf CLF Classification algorithm type.
-sampling SAMPLING Resampling method type.
-sep SEP Separator for input file. Default="\s+|\t+".
-clf CLF Classification algorithm type. Default=xgb.
-sampling SAMPLING Resampling method type. Default=classic_ADASYN.
-output OUTPUT Name of output file, CSV or XLSX format.
Default=B3clf_output.xlsx.
-verbose VERBOSE If verbose is not zero, B3clf will print out the
predictions.
predictions. Default=1.
-keep_features KEEP_FEATURES
To keep computed feature file or not.
-keep_sdf KEEP_SDF To keep computed molecular geometries or not.
To keep computed feature file ("yes") or not ("no").
Default=no.
-keep_sdf KEEP_SDF To keep computed molecular geometries ("yes") or not
("no"). Default=no.
```

In `Python`, it is also doable with
Expand Down
15 changes: 8 additions & 7 deletions b3clf/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,31 +45,32 @@ def main():
parser.add_argument("-sep",
type=str,
default="\s+|\t+",
help="Separator for input file.")
help="""Separator for input file. Default="\s+|\\t+".""")
parser.add_argument("-clf",
type=str,
default="xgb",
help="Classification algorithm type.")
help="Classification algorithm type. Default=xgb.")
parser.add_argument("-sampling",
type=str,
default="classic_ADASYN",
help="Resampling method type.")
help="Resampling method type. Default=classic_ADASYN.")
parser.add_argument("-output",
type=str,
default="B3clf_output.xlsx",
help="Name of output file, CSV or XLSX format.")
help="Name of output file, CSV or XLSX format. Default=B3clf_output.xlsx.")
parser.add_argument("-verbose",
type=int,
default=1,
help="If verbose is not zero, B3clf will print out the predictions.")
help="If verbose is not zero, B3clf will print out the predictions. "
"Default=1.")
parser.add_argument("-keep_features",
type=str,
default="no",
help="To keep computed feature file or not.")
help="""To keep computed feature file ("yes") or not ("no"). Default=no.""")
parser.add_argument("-keep_sdf",
type=str,
default="no",
help="To keep computed molecular geometries or not. ")
help="""To keep computed molecular geometries ("yes") or not ("no"). Default=no.""")
args = parser.parse_args()

_ = b3clf(mol_in=args.mol,
Expand Down

0 comments on commit 14a0a55

Please sign in to comment.