-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
EDIT: I understand the problem now. I have some selfing in the population which will cause some level of homozygosity for the alternate allele and hence this will not work.
[Keeping this issue on for anyone else]
Hello,
Data description:
I have backcross population of BC2S4s. for test, i am using 3 samples and 3 chromosomes.
I am running the function using nstates=2,
myres = RTIGER(expDesign = expDesign,
outputdir = getwd(),
seqlengths = chr_len,
rigidity = 100,
autotune = TRUE,
nstates = 2 ,
max.iter = 25,
average_coverage = 0.8,
save.results = TRUE)
i get the following error:
Loading data and generating RTIGER object.
Using 2 states for fitting.
[1] "Loading file: /Users/nirwan/Desktop/Bzea_allelecount/filtered/PN7_SID600.allelicCounts.txt"
[1] "Loading file: /Users/nirwan/Desktop/Bzea_allelecount/filtered/PN8_SID679.allelicCounts.txt"
[1] "Loading file: /Users/nirwan/Desktop/Bzea_allelecount/filtered/PN9_SID781.allelicCounts.txt"
Fitting the parameters and Viterbi decoding.
post processing value is: TRUE
R value autotune is: TRUE
Fitting an RTIGER object with the R provided by the user.
Optimizing the R parameter.
Error in params[["paraBetaAlpha"]][state, 1] : subscript out of bounds
It did work for nstates=3 however,
> myres2 = RTIGER(expDesign = expDesign,
+ outputdir = getwd(),
+ seqlengths = chr_len,
+ rigidity = 100,
+ autotune = TRUE,
+ max.iter = 25,
+ average_coverage = 0.8,
+ save.results = TRUE)
Loading data and generating RTIGER object.
Using 3 states for fitting.
[1] "Loading file: /Users/nirwan/Desktop/Bzea_allelecount/filtered/PN7_SID600.allelicCounts.txt"
[1] "Loading file: /Users/nirwan/Desktop/Bzea_allelecount/filtered/PN8_SID679.allelicCounts.txt"
[1] "Loading file: /Users/nirwan/Desktop/Bzea_allelecount/filtered/PN9_SID781.allelicCounts.txt"
Fitting the parameters and Viterbi decoding.
post processing value is: TRUE
R value autotune is: TRUE
Fitting an RTIGER object with the R provided by the user.
Optimizing the R parameter.
Best R value: 512
Number of iterations run: 19
Plotting samples Genotypes.
PLotting CO number per chromosome.
Creating bed and IGV output formats.
Plotting goodness of fit.
Any help is appreciated.
Metadata
Metadata
Assignees
Labels
No labels