nanoporetech / dorado

Oxford Nanopore's Basecaller
https://nanoporetech.com/
Other
491 stars 59 forks source link

Minor: Argument parsing with the --modified-bases parameter #876

Open rfran010 opened 3 months ago

rfran010 commented 3 months ago

Issue Report

Please describe the issue:

I am not very technical at the command line, so please excuse me my ignorant use of terms.

When running modified base calls, the data dir argument was not correctly handled.

I expected the last argument to be parsed as the data file/dir. However, with the following commands everything after --modified-bases was handled as an argument to the parameter instead of parsing as data or model.

dorado basecaller hac --modified-bases 5mCG_5hmCG ${data_dir} > ${bam_calls}
dorado basecaller --modified-bases 5mCG_5hmCG hac ${data_dir} > ${bam_calls}

Please provide a clear and concise description of the issue you are seeing and the result you expect.

Steps to reproduce the issue:

Please list any steps to reproduce the issue.

Run environment:

Logs

[2024-06-09 10:57:33.636] [info] Running: "basecaller" "--modified-bases" "5mCG_5hmCG" "hac" "../NoE2/"
[2024-06-09 10:57:34.341] [error] 'hac' is not a supported modification please select from pseU, m6A_DRACH, m6A, 6mA, 5mC, 5mCG_5hmCG, 5mCG, 5mC_5hmC, 4mC_5mC
malton-ont commented 3 months ago

Hi @rfran010,

Thanks for raising this issue. We're aware of it from other issues (see 744 and 745 for example). Please ensure that the --modified-bases argument is the last parameter passed to dorado.