yjx1217 / simuG

simuG: a general-purpose genome simulator
MIT License
83 stars 11 forks source link

How to simulate SV (insertions and deletions) with length > 50bp? #14

Closed Meltpinkg closed 10 months ago

Meltpinkg commented 11 months ago

Hello! According to the help page, when randomly simulateing variants, simuG can simulate SNP/Indels (1~50bp), and SVs (CNV/inversion/translocation). How can I simulate random insertions and deletions which are larger than 50bp? Thanks!

yjx1217 commented 10 months ago

Hi @Meltpinkg ,

Technically, an insertion or deletion larger than 50bp will be considered as SV-level insertion or deletion, which can be simulated via CNV simulation.

Or, you can change the line 1620 of the simuG.pl script to replace $indel_size=50 with $indel_size=M, where M can be whatever the maximal value of the INDEL that you want to simulate.

Best, Jia-Xing

Meltpinkg commented 10 months ago

Hi @yjx1217

Thanks very much for your reply. That helps me a lot! :)

Best, Shuqi

yjx1217 commented 10 months ago

Great it helps! You are welcome. :-)