[GenABEL-dev] probabel big endian support
L.C. Karssen
lennart at karssen.org
Sat Apr 26 22:17:38 CEST 2014
Dear Jurica,
On 24-04-14 15:52, Jurica Stanojkovic wrote:
> Dear list,
>
> I have tried building package probabel on mips big endian.
That is great to hear! As far as I know, none of the current developers
have access to such a machine.
> It looks like that inputfiles/*.fvd and inputfiles/*.fvi are created on
> little endian machine and are not working on big endian ones.
That is correct, we found out
>
> I have tried to create them on big endian mips, and replace ones that
> came with source package with the ones that I have created.
> The package was built with new files without an error.
That is good news. So GenABEL and DatABEL work on big-endian machines.
>
> I used following command to create files:
> library(GenABEL)
> library(DatABEL)
> fvdose <- mach2databel(imputedg="./checks/inputfiles/test.mldose",
> mlinfo="./checks/inputfiles/test.mlinfo",
> outfile="./checks/inputfiles/test.dose")
> fvprob <- mach2databel(imputedg="./checks/inputfiles/test.mlprob",
> mlinfo="./checks/inputfiles/test.mlinfo",
> outfile="./checks/inputfiles/test.prob", isprob=TRUE)
> mmdose <-
> mach2databel(imputedg="./checks/inputfiles/mmscore_gen.mldose",
> mlinfo="./checks/inputfiles/mmscore_gen.mlinfo",
> outfile="./checks/inputfiles/mmscore_gen.dose")
> mmprob <-
> mach2databel(imputedg="./checks/inputfiles/mmscore_gen.mlprob",
> mlinfo="./checks/inputfiles/mmscore_gen.mlinfo",
> outfile="./checks/inputfiles/mmscore_gen.prob", isprob=TRUE)
>
> I am new to ProbABEL, GenABEL, DatABEL so could someone please help me
> with following questions:
>
> What is the best course of action for supporting probabel on big endian?
> Should *.fvi, *.fvd files allways be in little endian format (than
> DatABEL needs to be changed to always create little endian files)?
> Or can *.fvd, *.fvi files be replaced with big endian files for big
> endian build?
I would say that ideally the files need only to be created once and then
usable on all systems. Especially since these files are usually large
and converting from text format to .fvi/.fvd takes quite a while.
This, however, would require diving into the filevector and the DatABEL
code (filevector or libfilevector is the name of the 'backend' code in
which the .fvd/.fvi files are 'defined'; both DatABEL and ProbABEL use
that code when dealing with .fvi/.fvd files). I don't have very much
experience with either code base, but could probably have a look and
give you some pointers.
>
> Is it necessary to be able to use *.fvd *.fvi files created on a
> different endian system?
On the other hand, how often will people transfer these files to
machines of different architectures?
Jurica, can you tell us a bit more about why you are using a MIPS
machine for your work with ProbABEL? And do you think it would be a
common task to move these files between machines with different
architectures at your site?
Maybe a converter from big to little and vice versa would be the easiest
solution? I guess such a conversion can be done rather quick. The
downside would be that it (at least temporarily) requires double the
disk space.
Such a converter could be part of the fvutils and/or of DatABEL, for
example.
>
> I am willing to work on adding big endian support and I will appreciate
> any help in determining the right course of action in resolving this
> problem.
Thank you for your time and willingness to help! It is very much
appreciated. We're a small group of developers, but we'll try to help as
much as we can.
Best,
Lennart.
>
> Regards,
> Jurica
>
>
> _______________________________________________
> genabel-devel mailing list
> genabel-devel at lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/genabel-devel
>
--
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
L.C. Karssen
Utrecht
The Netherlands
lennart at karssen.org
http://blog.karssen.org
GPG key ID: A88F554A
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 213 bytes
Desc: OpenPGP digital signature
URL: <http://lists.r-forge.r-project.org/pipermail/genabel-devel/attachments/20140426/9796f129/attachment.sig>
More information about the genabel-devel
mailing list