Question: sangerseqR::read.abif reads float data incorrectly on little-endian systems
0
gravatar for brendan.furneaux
23 months ago by
brendan.furneaux10 wrote:

The bug should affect reading SCF files also.

problem: UnExportedFunctions.R lines 60-61

f32 <- function(f, n=length(f)/4) readBin(f, what = "numeric", size = 4, n=n)
f64 <- function(f, n=length(f)/8) readBin(f, what = "numeric", size = 8, n=n)

solution:

f32 <- function(f, n=length(f)/4) readBin(f, what = "numeric", size = 4, n=n, endian = "big)
f64 <- function(f, n=length(f)/8) readBin(f, what = "numeric", size = 8, n=n, endian = "big")
bug sangerseqr • 327 views
ADD COMMENTlink written 23 months ago by brendan.furneaux10
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 16.09
Traffic: 259 users visited in the last hour