sangerseqR::read.abif reads float data incorrectly on little-endian systems
0
0
Entering edit mode
@brendanfurneaux-13009
Last seen 4.7 years ago

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")
sangerseqR bug • 1.1k views
ADD COMMENT

Login before adding your answer.

Traffic: 848 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