Question: RSVSim cannot simulate duplications
0
gravatar for bdelolmo
2.6 years ago by
bdelolmo10
Barcelona
bdelolmo10 wrote:

Hello,

I am trying to simulate some SVs using RSVSim. I can simulate both deletions and insertions at the same time, but the problem comes when I want to introduce duplications.

This is the code that I use:

sim = simulateSV(output='.', genome=genome, chrs = "chr12", ins = 150, sizeIns = sizeins, dels = 150, sizeDels = sizedels, dups = 150, sizeDups = sizedups)

The genome variable is the plain text ucsc hg 19 version. Size params are vectors of 150 random lengths between 20 to 200 bp.

The error that it throws is:

Loading genome from FASTA file: /home/bernat/reference/ucsc.hg19.fasta
Breakpoints will be distributed uniformly across the genome
Error in sample.int(length(x), size, replace, prob) : 
cannot take a sample larger than the population when 'replace = FALSE'

Does any know why is this happening?

ADD COMMENTlink modified 2.5 years ago by choosehappy10 • written 2.6 years ago by bdelolmo10
1
gravatar for choosehappy
2.5 years ago by
choosehappy10
choosehappy10 wrote:

I had the same issue with RSVsim version 1.10 (it was the default installed by bioconductor for R3.2). I installed RSVsim version 1.12 from source, and the issue was resolved.

ADD COMMENTlink written 2.5 years ago by choosehappy10
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 752 users visited in the last hour