NanoSim icon indicating copy to clipboard operation
NanoSim copied to clipboard

NanoSim for tuning Minimap2 parameters?

Open ammaraziz opened this issue 2 years ago • 2 comments

Hi there,

Thank you for creating and maintaining NanoSim, great tool.

Could nanosim be used to fine tune the parameters of Minimap2? If so do you have any recommendation on how to extract the relevant data to help inform parameter selection.

A non complete list of minimap2 params I'd like to fine tune:

  • Gap open penalty
  • Minimizer window size
  • Mismatching penalty

Thanks!

ammaraziz avatar Sep 04 '23 01:09 ammaraziz

That's an interesting proposition; I think it can be done.

First, you will need to simulate a set of reads (with simulator.py). Note that each simulated read has the corresponding source region coordinates encoded within its read name in the FASTQ file. You can then align these simulated reads with minimap2 with a sweep of relevant parameters. You will need to check the accuracy of each alignment against the read name information mentioned previously.

kmnip avatar Sep 04 '23 05:09 kmnip

Thanks for the advice.

Is it possible to use the profiles generated using the different modes to help guide the parameter selection?

ammaraziz avatar Sep 09 '23 09:09 ammaraziz