Skip to content

Backcrossed population #12

@nirwan1265

Description

@nirwan1265

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions