genomicAlignments: fail to run readGAlignments example code
1
0
Entering edit mode
@ariel-chernomoretz-1863
Last seen 8 months ago
Argentina

Hi

I got an error message when trying to read bam files (genomicAlignments 1.10).

I even got this error when trying to run the provided examples.

Follows: example code, traceback and sessionInfo

Thanks in advance for any help.

Ariel

 

> example(readGAlignments)

rdGAlg> ## ---------------------------------------------------------------------
rdGAlg> ## A. readGAlignments()
rdGAlg> ## ---------------------------------------------------------------------
rdGAlg>
rdGAlg> ## Simple use:
rdGAlg> bamfile <- system.file("extdata", "ex1.bam", package="Rsamtools",
rdGAlg+                        mustWork=TRUE)

rdGAlg> gal1 <- readGAlignments(bamfile)
Error in as.vector(x, mode) :
  '.SigArgs' is shorter than '.SigLength' says it should be

------------------------------------------------------------------------------------------------

> traceback()
24: as.vector(x, mode)
23: as.vector(x, mode = "integer")
22: .local(x, ...)
21: as.integer(seqnames(x))
20: as.integer(seqnames(x))
19: get_out_of_bound_index(x)
18: GenomicRanges:::valid.GenomicRanges.seqinfo(x)
17: valid.func(object)
16: validityMethod(object)
15: anyStrings(validityMethod(object))
14: validObject(.Object)
13: initialize(value, ...)
12: initialize(value, ...)
11: new("GAlignments", NAMES = names, seqnames = seqnames, start = pos,
        cigar = cigar, strand = strand, elementMetadata = elementMetadata,
        seqinfo = seqinfo)
10: GAlignments(seqnames = bamcols$rname, pos = bamcols$pos, cigar = bamcols$cigar,
        strand = bamcols$strand, seqlengths = seqlengths)
9: readGAlignments(bam, character(0), use.names = use.names, param = param,
       with.which_label = with.which_label)
8: readGAlignments(bam, character(0), use.names = use.names, param = param,
       with.which_label = with.which_label)
7: readGAlignments(bamfile)
6: readGAlignments(bamfile) at Rex5e07f874d38#21
5: eval(expr, envir, enclos)
4: eval(ei, envir)
3: withVisible(eval(ei, envir))
2: source(tf, local, echo = echo, prompt.echo = paste0(prompt.prefix,
       getOption("prompt")), continue.echo = paste0(prompt.prefix,
       getOption("continue")), verbose = verbose, max.deparse.length = Inf,
       encoding = "UTF-8", skip.echo = skips, keep.source = TRUE)
1: example(readGAlignments)

------------------------------------------------------------------------------------------------


> sessionInfo()
R version 3.3.2 (2016-10-31)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Debian GNU/Linux 8 (jessie)

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats4    parallel  stats     graphics  grDevices utils     datasets
[8] methods   base     

other attached packages:
 [1] GenomicAlignments_1.10.0   Rsamtools_1.26.1          
 [3] Biostrings_2.42.1          XVector_0.14.0            
 [5] SummarizedExperiment_1.4.0 Biobase_2.34.0            
 [7] GenomicRanges_1.26.2       GenomeInfoDb_1.10.2       
 [9] IRanges_2.8.1              S4Vectors_0.12.1          
[11] BiocGenerics_0.20.0       

loaded via a namespace (and not attached):
[1] lattice_0.20-29    bitops_1.0-6       grid_3.3.2         zlibbioc_1.20.0   
[5] Matrix_1.1-4       BiocParallel_1.8.1 tools_3.3.2

genomicAlignments • 954 views
ADD COMMENT
0
Entering edit mode
@valerie-obenchain-4275
Last seen 2.3 years ago
United States

I cannot reproduce this error. Are you still having this problem?

Valerie

ADD COMMENT

Login before adding your answer.

Traffic: 1064 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6