Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • trevor
    Junior Member
    • Nov 2010
    • 4

    #1

    Installing CASAVA on OS X 10.6.5 Snow Leopard

    I attempted to install Casava on OS X (10.6.5 Snow Leopard) and it didn't go so well out of the box. I was told it's not supported. I did a cursory search for others that have done this and didn't see anything.

    These were the steps I took to get an executable CASAVA binary installed - it seems like it wouldn't be that hard to be rolled into the official installation.

    I'm using GCC 4.5.1 (installed with MacPorts and managed with gcc_select), but this will likely work with the standard GCC 4.2.1 installation.

    Here's my setup:

    Code:
      % sw_vers
      ProductName:    Mac OS X
      ProductVersion: 10.6.5
      BuildVersion:   10H574
    
      % gcc --version
      gcc (GCC) 4.5.1


    - Step 1
    -- Update CMake to at least 2.8.3

    CMake needs to be updated to work with the latest version of OS X, or else you'll get "jni.h" not found errors.

    It's available here -
    You can either download binaries or source code archives for the latest stable or previous release or access the current development (aka nightly) distribution through Git. This software may not be exported in violation of any U.S. export laws or regulations. For more information regarding Export Control matters please go to https://www.kitware.com/legal.


    Check where it gets installed, likely /usr/local/bin

    Code:
      % which cmake
      /usr/local/bin/cmake
      % cmake --version
      cmake version 2.8.3

    - Step 2
    -- Get ChartDirector for Perl on OS X

    Code:
      cd /tmp
      curl -O http://download2.advsofteng.com/chartdir_perl_mac.tar.gz
      tar xvf chartdir_perl_mac.tar.gz


    - Step 3
    -- Expand CASAVA

    Code:
      tar xvf CASAVA_v1.7.0.tar.bz2
      cd CASAVA_v1.7.0
      mkdir CASAVA-build


    - Step 4
    -- Emend packaged CodeMin

    Code:
      cd redist
      tar xvf CodeMin-1.0.1.tar.gz
      mv CodeMin-1.0.1.tar.gz CodeMin-1.0.1.tar.gz.orig
    Now edit CodeMin-1.0.1/include/test_float.h -

    line 64 is -
    is_float_nan(FloatType x){ return isnan(x); }

    change line 64 to -
    is_float_nan(FloatType x){ return std::isnan(x); }


    line 68 is -
    is_float_inf(FloatType x){ return isinf(x); }

    change line 68 to -
    is_float_inf(FloatType x){ return std::isinf(x); }


    And then recreate the package -

    Code:
      tar cvf CodeMin-1.0.1.tar.gz CodeMin-1.0.1
      cd ..


    - Step 5
    -- Update src files

    A few modifications to the files in the 'src' directory. Here's the patchfile.


    Code:
    diff --git c++/include/alignment/GlobalUtilities.hh c++/include/alignment/GlobalUtilities.hh
    index 2aec781..77eccce 100644
    --- c++/include/alignment/GlobalUtilities.hh
    +++ c++/include/alignment/GlobalUtilities.hh
    @@ -37,6 +37,10 @@ AUTHOR: A. J. Cox
     // inner_product requires numeric
     #include <numeric>
     
    +typedef unsigned int uint;
    +typedef unsigned char uchar;
    +typedef unsigned short ushort;
    +#include <iostream>
     #include "common/Sequence.hh"
     
     // Identifier to embed in source and binary files
    @@ -47,9 +51,6 @@ AUTHOR: A. J. Cox
     using namespace std;
     namespace fs = boost::filesystem;
     
    -typedef unsigned int uint;
    -typedef unsigned char uchar;
    -typedef unsigned short ushort;
     
     static const char baseNames [] = "ACGT";
     
    diff --git c++/include/alignment/aligner.h c++/include/alignment/aligner.h
    index d52e45b..d8fce73 100755
    --- c++/include/alignment/aligner.h
    +++ c++/include/alignment/aligner.h
    @@ -35,6 +35,7 @@
     
     using namespace std;
     
    +typedef unsigned int uint;
     typedef unsigned char uchar;
     
     #define QUALSCALE 0.0333
    diff --git c++/include/common/Alignment.hh c++/include/common/Alignment.hh
    index 9df4c45..503e45a 100644
    --- c++/include/common/Alignment.hh
    +++ c++/include/common/Alignment.hh
    @@ -19,6 +19,7 @@
     #ifndef CASAVA_COMMON_ALIGNMENT_HH
     #define CASAVA_COMMON_ALIGNMENT_HH
     
    +#include "alignment/GlobalUtilities.hh"
     #include "common/Sequence.hh"
     
     namespace casava
    diff --git c++/include/common/Sequence.hh c++/include/common/Sequence.hh
    index b0490dd..46fc61d 100644
    --- c++/include/common/Sequence.hh
    +++ c++/include/common/Sequence.hh
    @@ -26,6 +26,9 @@
     #include <string>
     #include <vector>
     
    +typedef unsigned int uint;
    +typedef unsigned char uchar;
    +typedef unsigned short ushort;
     #include "common/Spot.hh"
     #include "common/FilteringStreams.hh"
     
    diff --git c++/lib/alignment/aligner.cpp c++/lib/alignment/aligner.cpp
    index f3c87c2..43b7a2d 100755
    --- c++/lib/alignment/aligner.cpp
    +++ c++/lib/alignment/aligner.cpp
    @@ -26,6 +26,7 @@
     
     using namespace std;
     
    +typedef unsigned int uint;
     typedef unsigned char uchar;
     
     #define QUALSCALE 0.0333
    diff --git c++/lib/applications/AlignCandIndelReads.cpp c++/lib/applications/AlignCandIndelReads.cpp
    index 0795f21..b78a80b 100644
    --- c++/lib/applications/AlignCandIndelReads.cpp
    +++ c++/lib/applications/AlignCandIndelReads.cpp
    @@ -122,7 +122,7 @@ int AlignCandIndelReads::run()
         if (line[0] == '#') { continue; }
     
         // Load export line into export record object
    -    Export::Export record(line, 1);
    +    Export record(line, 1);
     
         // Get reference region to align tag too
         string refSeq;


    - Step 6
    -- Configure and compile

    Goto the CASAVA-build directory.

    Code:
      ../src/configure --with-cmake=/usr/local/bin/cmake
      make
      make install
    'make install' will crash with a CMake permissions error. This is where you want to update ChartDirector.



    - Step 7
    -- Update ChartDiretor

    In the current CASAVA-build directory -

    Code:
      mkdir -p opt/ChartDirector/Darwin/i386/lib/fonts
      touch opt/ChartDirector/Darwin/i386/lib/chartdir.lic
      cp -R /tmp/ChartDirector/lib/* opt/ChartDirector/Darwin/i386/lib/fonts


    - Step 8
    -- Final install

    In the current CASAVA-build directory -

    Code:
      sudo make install
    You should now have CASAVA installed.

    Code:
      % /usr/local/bin/CASAVA --version
      Info: @CASAVA_VERSION_FULL@
  • husamia
    Member
    • Apr 2010
    • 66

    #2
    I heard 1.8 if not already available, have you tried it?

    Comment

    • trevor
      Junior Member
      • Nov 2010
      • 4

      #3
      Originally posted by husamia View Post
      I heard 1.8 if not already available, have you tried it?
      Yesterday Illumina Technical Support told me only 1.7.0 is available. Could you clarify?

      From their email on 2010-11-30:
      "CASAVA 1.7.0 is the latest version available. Unfortunately we do not support or test it on OS X."

      Comment

      • husamia
        Member
        • Apr 2010
        • 66

        #4
        I was talking to a core facility about data transfer and they mentioned this to me. I can't confirm it. Its probably not true or proposed update and I don't know when.

        Comment

        • drio
          Senior Member
          • Oct 2008
          • 323

          #5
          Not to discorage you, but I'd suggest you install some virtualization software and install a linux vm. You will have some performance penalty but the installation will be trivial.
          -drd

          Comment

          • KiTrinet
            Junior Member
            • Jun 2009
            • 7

            #6
            Please excuse my naivety as I am not as proficient as you guys. I wanted to know the patch file that you suggested to install. Do i need to create a new patchfile or should i include in some other file. If I have to create a new patch file how do I have to name it and should i just save it in ~/Casava_v1.8.2/scr or elsewhere. Thanks in advance for any suggestions

            Comment

            • trevor
              Junior Member
              • Nov 2010
              • 4

              #7
              Hi KiTrinet,

              This thread is from the past.

              What are you attempting to do?

              Comment

              • KiTrinet
                Junior Member
                • Jun 2009
                • 7

                #8
                Hi Trevor,

                Many thanks for your prompt reply. I am trying to install casava on my mac so i can convert the txt files to fastq format. I have followed your thread step by step however I am not properly understanding when you talk about "A few modifications to the files in the 'src' directory. Here's the patchfile." Do I have to create a patchfile or do I just copy that into a source file (if this is the case where should I copy it)

                With Kind Regards,

                Kreshnik

                Comment

                • trevor
                  Junior Member
                  • Nov 2010
                  • 4

                  #9
                  This thread was in reference to CASAVA version 1.7.0, the latest version right now is 1.8.2, which it appears you have. These instructions are likely out of date.

                  Comment

                  Latest Articles

                  Collapse

                  • SEQadmin2
                    16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
                    by SEQadmin2




                    NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification, detection...
                    Today, 06:46 AM
                  • SEQadmin2
                    Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
                    by SEQadmin2



                    Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

                    Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
                    ...
                    10-14-2026, 09:55 AM

                  ad_right_rmr

                  Collapse

                  News

                  Collapse

                  Topics Statistics Last Post
                  Started by SEQadmin2, 10-28-2026, 09:57 AM
                  0 responses
                  23 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 10-28-2026, 09:51 AM
                  0 responses
                  15 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 10-22-2026, 11:13 AM
                  0 responses
                  68 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 10-22-2026, 10:48 AM
                  0 responses
                  48 views
                  0 reactions
                  Last Post SEQadmin2  
                  Working...