bcgsc / NanoSim

Nanopore sequence read simulator
Other
233 stars 56 forks source link

Issue of fixed transcriptome read length generated by Nanosim for single thread #155

Closed Tidesun closed 2 years ago

Tidesun commented 2 years ago

Hi,

I have found an issue that all the simulated reads for the same transcript will have the same read length if setting the number of threads to 1. It seems that each thread will yield the same read length for the same transcript. I believe this is due to the simulation of read length from the KDE model is not conducted per read.

Thanks, Haoran

SaberHQ commented 2 years ago

Thanks for reporting this Haoran. We did some tests on this and I can confirm that there is an issue as you mentioned. I am working on it, doing some analysis, and I will push an update to fix it shortly. I will keep you updated.

SaberHQ commented 2 years ago

Dear @Tidesun ,

Please note that I did bunch of analysis and tested different approaches to fix your reported issue. I can confirm that the one you suggested works well and therefore, I incorporated your suggested fix into a pull request and updated the NanoSim repository.

I am closing the issue. Please let me know if you have any more question. Cheers.