Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 253364 - [new ebuild] sci-biology/phred-071220
Summary: [new ebuild] sci-biology/phred-071220
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Andrey Kislyuk (RETIRED)
URL: http://phrap.org/phredphrapconsed.html
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-01 16:09 UTC by Martin Mokrejš
Modified: 2009-03-15 23:04 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
phred-071220.ebuild (phred-071220.ebuild,1.31 KB, text/plain)
2009-01-01 16:10 UTC, Martin Mokrejš
Details
files/phred (phred,51 bytes, text/plain)
2009-01-02 15:11 UTC, Martin Mokrejš
Details
Manifest (Manifest,583 bytes, text/plain)
2009-01-02 15:11 UTC, Martin Mokrejš
Details
mathtest.cpp (mathtest.cpp,220 bytes, text/plain)
2009-03-15 23:04 UTC, Martin Mokrejš
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2009-01-01 16:09:20 UTC
It is distributed along with sci-biology/phrap which is already in portage
under same license. Tested on ~x86 and will do as well on ~amd64.

Quoting from the documentation:

    Phred reads DNA sequencer trace data, calls bases, assigns quality
    values to the bases, and writes the base calls and quality values to
    output files. Phred can read trace data from chromatogram files in
    the SCF, ABI, and ESD formats. It automatically determines the file
    format, and whether the chromatogram file was compressed using gzip,
    bzip2, or UNIX compress.  After calling bases, phred writes the
    sequences to files in either FASTA format, the format suitable for
    XBAP, PHD format, or the SCF format.  Quality values for the bases
    are written to FASTA format files or PHD files, which can be used by
    the phrap sequence assembly program in order to increase the accuracy
    of the assembled sequence.




# equery files phred-071220
[ Searching for packages matching phred-071220... ]
* Contents of sci-biology/phred-071220:
/etc
/etc/env.d
/etc/env.d/21phred
/usr
/usr/bin
/usr/bin/daev
/usr/bin/phred
/usr/share
/usr/share/doc
/usr/share/doc/phred-071220
/usr/share/doc/phred-071220/daev.txt.bz2
/usr/share/doc/phred-071220/phred.txt.bz2
/usr/share/phred
/usr/share/phred/phredpar.dat
#
Comment 1 Martin Mokrejš 2009-01-01 16:10:10 UTC
Created attachment 177014 [details]
phred-071220.ebuild
Comment 2 Martin Mokrejš 2009-01-01 16:16:28 UTC
Similar ebuild should be made available for phred-020425-distrib.tar.Z (note
the .Z extension instead of .gz in newer beta distfile).
Comment 3 Martin Mokrejš 2009-01-02 15:11:07 UTC
Created attachment 177106 [details]
files/phred

installed into /etc/env.d/21phred
Comment 4 Martin Mokrejš 2009-01-02 15:11:21 UTC
Created attachment 177107 [details]
Manifest
Comment 5 Andrey Kislyuk (RETIRED) gentoo-dev 2009-02-20 19:54:51 UTC
Now available in the science overlay
Comment 6 Martin Mokrejš 2009-02-21 22:16:14 UTC
Compiles&installs fine, thanks.
Comment 7 Martin Mokrejš 2009-02-21 22:33:23 UTC
<quote>
From: David Gordon
Subject: Re: phred, phrap, consed, autofinish, swat, cross_match


I cannot provide assistance in building consed from source due to the
potentially huge amount of time involved.

CONSED_HOME is used by many programs, including scripts, so that
executables can be called directly by full path.  It is also used by
consed for particular files it needs.

You are right that phd2fasta is packaged twice--this is not necessary
in your case.

There are some runtime checks for versions of some programs.


On Thu, 1 Jan 2009, Martin MOKREJŠ wrote:

> BTW, while reading README.TXT I wonder what CONSED_HOME is needed for.
> Is not $PATH sufficient? Or do you want to say the binaries have to be
> in a same directory? I don't understand why. Want to place into /usr/bin/
> as usual.
>
> I am puzzled with phd2fasta. I received it from Brent directly.
> Why is is packaged under consed_sources again? Where can I find in the
> source tree which version is it?
>
> Are there any runtime checks for min. version of the required programs
> or are the version numbers only listed in the README.TXT file?
> Thanks,
> Martin 
<quote>
Comment 8 Andrey Kislyuk (RETIRED) gentoo-dev 2009-02-27 00:06:07 UTC
In gentoo-x86.
Comment 9 Martin Mokrejš 2009-03-15 23:00:17 UTC
On quad-core Intel machine running 64bit gentoo linux:

# g++ -mfpmath=387 mathtest.cpp -o mathtest
# ./mathtest 
0 - -0.010493125305267737152
1 - -0.0026089216791607503648
2 - -0.00065133848759705019645
# g++ -mfpmath=387 -m128bit-long-double mathtest.cpp -o mathtest
# ./mathtest 
0 - -0.010493125305267737152
1 - -0.0026089216791607503648
2 - -0.00065133848759705019645
# g++ -mfpmath=387 -m96bit-long-double mathtest.cpp -o mathtest
# ./mathtest 
0 - -0.010493125305267737152
1 - -0.0026089216791607503648
2 - -0.00065133848759705019645
# g++ -mfpmath=sse -m96bit-long-double mathtest.cpp -o mathtest
# ./mathtest 
0 - -0.010493125305267803071
1 - -0.0026089216791607139356
2 - -0.00065133848759701962194
# g++ -mfpmath=sse -m128bit-long-double mathtest.cpp -o mathtest
# ./mathtest 
0 - -0.010493125305267803071
1 - -0.0026089216791607139356
2 - -0.00065133848759701962194
#

On old P4-M machine running 32-bit gentoo linux:

$ g++ -mfpmath=387 mathtest.cpp -o mathtest
$ ./mathtest 
0 - -0.010493125305267768377
1 - -0.0026089216791607742173
2 - -0.00065133848759708293935
$ g++ -mfpmath=387 -m128bit-long-double mathtest.cpp -o mathtest
$ ./mathtest 
0 - -0.010493125305267768377
1 - -0.0026089216791607742173
2 - -0.00065133848759708293935
$ g++ -mfpmath=387 -m96bit-long-double mathtest.cpp -o mathtest
$ ./mathtest 
0 - -0.010493125305267768377
1 - -0.0026089216791607742173
2 - -0.00065133848759708293935
$ g++ -mfpmath=sse -m96bit-long-double mathtest.cpp -o mathtest
mathtest.cpp:1: warning: SSE instruction set disabled, using 387 arithmetics
$ ./mathtest 
0 - -0.010493125305267768377
1 - -0.0026089216791607742173
2 - -0.00065133848759708293935
$ g++ -mfpmath=sse -m128bit-long-double mathtest.cpp -o mathtest
mathtest.cpp:1: warning: SSE instruction set disabled, using 387 arithmetics
$ ./mathtest 
0 - -0.010493125305267768377
1 - -0.0026089216791607742173
2 - -0.00065133848759708293935
$
Comment 10 Martin Mokrejš 2009-03-15 23:04:06 UTC
Created attachment 185120 [details]
mathtest.cpp

Simple c++ code sensitive to floating point precision issues with 387 and sse math.