bonito icon indicating copy to clipboard operation
bonito copied to clipboard

bonito basecaller to have a resume mode

Open Kirk3gaard opened this issue 4 years ago • 2 comments

Hi

It would be great if the bonito basecaller had a --resume mode in case something crashes or more reads are generated to avoid having to basecall everything from scratch or manually figure out which files have been basecalled.

Best regards Rasmus

Kirk3gaard avatar Feb 23 '21 09:02 Kirk3gaard

Hey @Kirk3gaard

You can use --skip --read-ids with the output redirection append operator >> to achieve this.

$ grep -Po '^>\K.*' calls.fasta > read-ids.txt
$ bonito basecaller dna_r9.4.1 --skip --read-ids read-ids.txt reads >> calls.fasta

Note: if providing a reference and outputting sam you'll want to use a new output file as appending will produce an invalid file.

iiSeymour avatar Feb 23 '21 10:02 iiSeymour

Hi Chris

Thanks. That is a nice workaround.

Best Rasmus

Kirk3gaard avatar Feb 23 '21 12:02 Kirk3gaard