Skip to content

Converting and demultiplexing of PacBio BAM files into gzipped fasta and fastq files.

License

Notifications You must be signed in to change notification settings

neilrobertson/bam2fastx

 
 

Repository files navigation

PacBio logo

BAM2fastx tools

The BAM2fastx tools allow conversion of PacBio BAM files into gzipped fasta and fastq files, including demultiplexing of barcoded data.

DEPENDENCIES

Please install Boost and zlib.

INSTALL

  • Download source from github

      git clone https://github.com/PacificBiosciences/bam2fastx && cd bam2fastx
    
  • Sync your code with the latest git code base:

      git submodule update --init --remote
    
  • Create build directory

      mkdir build && cd build
    
  • Invoke cmake with Boost and zlib as system libraries

      cmake ..
    
  • Or with user-specific paths

      cmake -DBoost_INCLUDE_DIRS=/path/to/boost/include -DZLIB_INCLUDE_DIRS=/path/to/zlib/include -DZLIB_LIBRARIES=/path/to/zlib/lib ..
    
  • Build

      make
    

USAGE

Both tools have an identical interface and take BAM and/or DataSet files as input. Examples:

    bam2fasta -o projectName m54008_160330_053509.subreads.bam
    bam2fastq -o myEcoliRuns m54008_160330_053509.subreads.bam m54008_160331_235636.subreads.bam
    bam2fasta -o myHumanGenome m54012_160401_000001.subreadset.xml

HELP

Support is only provided for official and stable SMRT Analysis builds provided by PacBio and not for source builds.

About

Converting and demultiplexing of PacBio BAM files into gzipped fasta and fastq files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 78.8%
  • CMake 12.4%
  • Shell 4.5%
  • Perl 4.3%