Skip to content

error: 'names' attribute [3] must be the same length as the vector [1] #14

@ncsumaize

Description

@ncsumaize

I get this error after model fitting (I think), GenotypePlots are created and then the error pops, and the object with genotype calls is not returned. Any suggestions on how to work around this error?

library(RTIGER)
library(Gviz)
Loading required package: grid
library(rtracklayer)
setupJulia(JULIA_HOME = "C:/Users/jholland/AppData/Local/Programs/Julia-1.9.4/bin")
Julia version 1.9.4 at location C:\Users\jholland\AppData\Local\Programs\JULIA-~1.4\bin will be used.
Loading setup script for JuliaCall...
Finish loading setup script for JuliaCall.
WARNING: Your Julia version is different than 1.0.5.
We recommend to use 1.0.5 to improve speeed. Using other versions might give problems or do not work on higher speed.> sourceJulia()

file_paths = list.files("Q:/My Drive/tsi_new/rtiger/popB1", pattern = "\.chr1\.txt$", full.names = TRUE)
file_paths = file_paths[c(1, 25, 76, 97)]

Get sample names

sampleIDs <- sub('\.chr1.txt$', '', basename(file_paths))

Create the expDesign object

expDesign = data.frame(files=file_paths, name=sampleIDs)

#give chromosome lengths
chr_len = c(308452471)
names(chr_len) = "chr1"
myres = RTIGER(expDesign = expDesign,

  •            #outputdir = "popB1/output",
    
  •            outputdir = "Q:/My Drive/tsi_new/rtiger/popB1/output",
    
  •            seqlengths = chr_len,
    
  •            rigidity = 20,
    
  •            nstates=2, #for BC1 population
    
  •            save.results = TRUE)
    

Loading data and generating RTIGER object.
Using 2 states for fitting.
[1] "Loading file: Q:/My Drive/tsi_new/rtiger/popB1/Early_W22_X_Chalco_teo.101-1__source_of_Mtsi__429-1.chr1.txt"
[1] "Loading file: Q:/My Drive/tsi_new/rtiger/popB1/ftsi_x__Mtsi
+__extracted_from_Teo._Col._101 JKP8874x8884-106_465-2.chr1.txt"
[1] "Loading file: Q:/My Drive/tsi_new/rtiger/popB1/P8Sibs_of_Population_B_P8962-26.chr1.txt"
[1] "Loading file: Q:/My Drive/tsi_new/rtiger/popB1/W22_ftsi_isolate_A_462-1.chr1.txt"

Fitting the parameters and Viterbi decoding.
post processing value is: TRUE
R value autotune is: FALSE
Number of iterations run: 30

Plotting samples Genotypes.
PLotting CO number per chromosome.
Error in names(x) <- value :
'names' attribute [3] must be the same length as the vector [1]

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