Open
Description
Currently, rsmpredict
supports an undocumented option of specifying an output directory instead of file if the output_file does not have a .csv
or .xlsx
extension. However, there are several inconsistencies:
- This option is not documented so the docstring is inaccurate.
- The output file format is controlled by the
file_format
setting in thersmpredict
configuration file and the extension of the specified file is totally ignored, if specified. - The directory bit is untested in addition to being undocumented.
- The
.tsv
file format is not represented in the check that determines whether the output is a file or a directory.
I think a reasonable solution would be to:
- Get rid of the directory output option entirely.
- Make it so that the output argument is called
output_prefix
with the file format specified in the configuration file overriding the file format on the command line and an appropriate warning generated.