]> git.donarmstrong.com Git - bamtools.git/log
bamtools.git
12 years agoMultiReader (&MultiMerger) now using Algorithms::Sort objects
derek [Mon, 3 Oct 2011 20:33:44 +0000 (16:33 -0400)]
MultiReader (&MultiMerger) now using Algorithms::Sort objects

12 years agoInitial test run of new BamAlgorithms
derek [Fri, 30 Sep 2011 20:20:28 +0000 (16:20 -0400)]
Initial test run of new BamAlgorithms

12 years agoFix: unmapped reads now pushed to end of coordinate-sorted BAM
derek [Wed, 28 Sep 2011 16:26:25 +0000 (12:26 -0400)]
Fix: unmapped reads now pushed to end of coordinate-sorted BAM

12 years agoFixed typo in error messages
derek [Tue, 27 Sep 2011 15:46:40 +0000 (11:46 -0400)]
Fixed typo in error messages

12 years agoMerge pull request #16 from gabeiscoding/patch-2
Derek Barnett [Tue, 27 Sep 2011 04:10:59 +0000 (21:10 -0700)]
Merge pull request #16 from gabeiscoding/patch-2

Fixed: Crash in BamStandardIndex::GetOffset for small BAM files

12 years agoIn standard indexed BAM files with with sparce coverage (our test case was a roughly...
gabeiscoding [Fri, 23 Sep 2011 15:35:34 +0000 (09:35 -0600)]
In standard indexed BAM files with with sparce coverage (our test case was a roughly 1M read RNAseq BAM file), queries made to intervals may not have any of the candidate offesets present in the index as the BAM index only contains bins that have reads.

Without this bail out, we would get a crash. Returning false silently is the preferred behavior in our view as it allows our read logic to go to the next query and does not add noise to stderr.

12 years agoMerge branches 'master' and 'iodevice' into iodevice
derek [Sat, 10 Sep 2011 02:05:02 +0000 (22:05 -0400)]
Merge branches 'master' and 'iodevice' into iodevice

12 years agoMinor cleanup
derek [Sat, 10 Sep 2011 01:40:06 +0000 (21:40 -0400)]
Minor cleanup
 * Removed SourceForge URL from README
 * Removed phrase "All rights reserved." from all files

12 years agoRemoved unnecessary peek-and-rewind behavior in BamMultiReader
derek [Fri, 9 Sep 2011 22:49:44 +0000 (18:49 -0400)]
Removed unnecessary peek-and-rewind behavior in BamMultiReader
 * Fixes some piping issues

12 years agoRemoved 'core mode' concept from BamMultiReader internals
derek [Fri, 9 Sep 2011 22:32:44 +0000 (18:32 -0400)]
Removed 'core mode' concept from BamMultiReader internals
 * Now char data is only generated if needed by multi-merger
implementation or on-demand by client call to
BamMultiReader::GetNextAlignment()

12 years agoRefactored shared pipe/file behavior into ILocalIODevice
derek [Fri, 9 Sep 2011 19:09:53 +0000 (15:09 -0400)]
Refactored shared pipe/file behavior into ILocalIODevice

12 years agoMerge branches 'master' and 'iodevice' into iodevice
derek [Fri, 9 Sep 2011 16:07:31 +0000 (12:07 -0400)]
Merge branches 'master' and 'iodevice' into iodevice

12 years agoBasic internal implementation of BamFile & BamPipe
derek [Fri, 9 Sep 2011 16:02:06 +0000 (12:02 -0400)]
Basic internal implementation of BamFile & BamPipe
 * BgzfStream now working on IBamIODevice instead of FILE*
 * BamReaderPrivate now queries stream's IsOpen() method instead of
touching member variable directly
 * Empty implementations of BamHttp & BamFtp
 * Added global BT_ASSERT_X macro for convenience

12 years agoMerge pull request #15 from gabeiscoding/patch-1
Derek Barnett [Thu, 8 Sep 2011 20:59:09 +0000 (13:59 -0700)]
Merge pull request #15 from gabeiscoding/patch-1

Bug discovered. The chunkStop was not being read from the correct offset

12 years agoBug discovered. The chunkStop was not being read from the correct offset (rather...
gabeiscoding [Thu, 8 Sep 2011 13:32:48 +0000 (07:32 -0600)]
Bug discovered. The chunkStop was not being read from the correct offset (rather always being read as the first chunkStart value for the # alignment chunks in that bin of the index.

The result of this is that chunkStop will never be >= minOffset (or maybe rarely, since it always equals the first chunkStart for the first chunk) and thus the linear index doesn't really help in reducing the number of seeks performed.

12 years agoAdded empty IBamIODevice.h
derek [Wed, 7 Sep 2011 17:54:30 +0000 (13:54 -0400)]
Added empty IBamIODevice.h

12 years agoAdded support for "-" as indicator for stdin/stdout
derek [Fri, 2 Sep 2011 17:01:43 +0000 (13:01 -0400)]
Added support for "-" as indicator for stdin/stdout
* Thanks to Aaron Quinlan for suggestion

12 years agoAdded "isSingleton" property to filter tool
derek [Fri, 2 Sep 2011 16:35:54 +0000 (12:35 -0400)]
Added "isSingleton" property to filter tool

12 years agoImplemented binary search through bins in BAI
derek [Wed, 27 Jul 2011 15:34:41 +0000 (11:34 -0400)]
Implemented binary search through bins in BAI

12 years agoAdded a -minMQ (minimum map quality) option to ResolveTool
derek [Wed, 6 Jul 2011 16:24:00 +0000 (12:24 -0400)]
Added a -minMQ (minimum map quality) option to ResolveTool

12 years agoMerge pull request #13 from alecchap/master
Derek Barnett [Tue, 28 Jun 2011 16:37:30 +0000 (09:37 -0700)]
Merge pull request #13 from alecchap/master

Fixes for Visual Studio

12 years agoAdded unique-alignment checks for ResolveTool
derek [Tue, 28 Jun 2011 16:31:25 +0000 (12:31 -0400)]
Added unique-alignment checks for ResolveTool
 * Unique-ness determined by comparing MapQuality to 0
 * Only pairs with both mates unique are used for the 'makeStats' median
fragment size calculation.

12 years agoFix Visual Studio compiler errors.
Alec Chapman [Tue, 28 Jun 2011 01:58:30 +0000 (21:58 -0400)]
Fix Visual Studio compiler errors.

Don't use dynamic stack allocation (variable length arrays).
Rename bamtools target to bamtools_cmd to not conflict with BamTools target (they differ only in case).
bamtools_cmd only compiles if I remove bamtools_filter.cpp, which I haven't committed.
I also had to manually configure the include directory for zlib,
but that's probably due to having multiple copies floating around my machine.

12 years agoFixed -fPIC issue for CentOS users.
derek [Thu, 23 Jun 2011 19:35:35 +0000 (15:35 -0400)]
Fixed -fPIC issue for CentOS users.

 * Forced compiler flag that was not being automatically set by CMake on
that OS. Had previously set this on API library. Got feedback that it
worked there, so I added the flag to Utils & JsonCPP libs as well.

12 years agoRemoved pessimistic warnings when jumping to regions with no data, using
derek [Fri, 17 Jun 2011 04:09:49 +0000 (00:09 -0400)]
Removed pessimistic warnings when jumping to regions with no data, using
the standard index format (not actually an error case, so no need to
alarm users with scary messages)

12 years agoAdded re-calculation of BamAlignment's BinID during
derek [Fri, 17 Jun 2011 02:13:26 +0000 (22:13 -0400)]
Added re-calculation of BamAlignment's BinID during
BamWriter::SaveAlignment() in all cases

 * Previously, the bin IDs of purely "core-only" alignments were simply
written directly out to output BAM. However, in cases where alignment
Position is changed (re-alignment), the original bin ID may no longer be
correct.

12 years agoImplemented better coupling of unmapped reads with mates during sorting
derek [Tue, 14 Jun 2011 17:41:56 +0000 (13:41 -0400)]
Implemented better coupling of unmapped reads with mates during sorting
(assuming assigned same coordinates)
 * Used std::stable_sort instead of std::sort, to preserve order
 * Add checks at buffer boundary to keep mates from being split into
different temp files. This makes the buffer boundary "softer", but in
practice, shouldn't differ much if at all.

12 years agoFurther fixes for ISIZE-handling in ResolveTool
derek [Tue, 14 Jun 2011 17:16:36 +0000 (13:16 -0400)]
Further fixes for ISIZE-handling in ResolveTool

12 years agoFixed some signed/unsigned InsertSize bugs in ResolveTool
derek [Mon, 13 Jun 2011 19:37:36 +0000 (15:37 -0400)]
Fixed some signed/unsigned InsertSize bugs in ResolveTool

12 years agoConvertTool fix: removed extra space in (BAM->FASTA) header lines
derek [Sat, 11 Jun 2011 21:07:43 +0000 (17:07 -0400)]
ConvertTool fix: removed extra space in (BAM->FASTA) header lines

12 years agoCreated 3 modes for ResolveTool: makeStats, markPairs, & twoPass
derek [Sat, 11 Jun 2011 21:05:43 +0000 (17:05 -0400)]
Created 3 modes for ResolveTool: makeStats, markPairs, & twoPass
 * "TwoPass" mode (the initial implementation of the tool) effectively
eliminates piped BAMs as an input option, since you can't exactly rewind
stdin and start reading from the beginning.
 * To get around this, I separated the two passes into separate "modes"
(-makeStats & -markPairs), that communicate via a simple, human-readable
stats summary file. Data can then be merged, filtered, etc and piped
into each mode if you don't mind the runtime of preprocessing twice but
don't want to physically store the unresolved intermediate BAM file.

12 years agoCleaned up help formatting & added some string utilities
derek [Sat, 11 Jun 2011 20:55:08 +0000 (16:55 -0400)]
Cleaned up help formatting & added some string utilities

12 years agoAdded new ResolveTool - for paired-end resolution. Similar to functionality provided...
derek [Tue, 7 Jun 2011 19:47:42 +0000 (15:47 -0400)]
Added new ResolveTool - for paired-end resolution. Similar to functionality provided inthe deprecated (or soon to be) MosaikSort tool

12 years agoMinor cleanup to toolkit code formatting.
derek [Tue, 7 Jun 2011 19:45:35 +0000 (15:45 -0400)]
Minor cleanup to toolkit code formatting.

12 years agoFixed minimum offset error in BAI jumping
derek [Tue, 10 May 2011 23:28:31 +0000 (19:28 -0400)]
Fixed minimum offset error in BAI jumping

12 years agoMerge pull request #9 from bookest/patch-1
Derek Barnett [Thu, 5 May 2011 17:49:59 +0000 (10:49 -0700)]
Merge pull request #9 from bookest/patch-1

'make install' should install bin/bamtools

12 years ago'make install' should install bin/bamtools
Christopher Grim [Thu, 5 May 2011 17:17:59 +0000 (10:17 -0700)]
'make install' should install bin/bamtools

13 years agoRemoved debug statements that snuck into last commit
derek [Wed, 27 Apr 2011 06:22:30 +0000 (02:22 -0400)]
Removed debug statements that snuck into last commit

13 years agoFixed regression bug in index formats. Wasn't properly handling empty references
derek [Wed, 27 Apr 2011 06:19:15 +0000 (02:19 -0400)]
Fixed regression bug in index formats. Wasn't properly handling empty references

13 years agoAdditional attempt to force -fPIC on CentOS
derek [Fri, 22 Apr 2011 18:40:36 +0000 (14:40 -0400)]
Additional attempt to force -fPIC on CentOS

13 years agoModified BamAlignment in attempt to resolve symbol issues on 64-bit systems.
derek [Fri, 22 Apr 2011 16:55:01 +0000 (12:55 -0400)]
Modified BamAlignment in attempt to resolve symbol issues on 64-bit systems.

13 years agoBrought API up to compliance with recent SAM Format Spec (v1.4-r962)
derek [Tue, 19 Apr 2011 23:01:01 +0000 (19:01 -0400)]
Brought API up to compliance with recent SAM Format Spec (v1.4-r962)

 * Added support for new "binary array" tag type
 * Added support for '=' and 'X' CIGAR ops
 * Added support for multiple PG entries in header
 * Added support for new RG fields

13 years agoRolled back the BGZF buffer size to the original 64K. 256K was causing
derek [Tue, 5 Apr 2011 17:37:01 +0000 (13:37 -0400)]
Rolled back the BGZF buffer size to the original 64K. 256K was causing
crashes on some systems.

13 years agoMajor performance boost to startup & random-access - especially for the
derek [Tue, 5 Apr 2011 16:43:31 +0000 (12:43 -0400)]
Major performance boost to startup & random-access - especially for the
use cases involving multiple (hundreds) of BAMs with BAI index files.

 * This did require some changes to the BamIndex interface. I doubt man
y people are writing custom index format classes, but if you are one of
them and have any problems, feel free to contact me with questions.

13 years agoUpdated Doxyfile, attempt to fix online file access
derek [Wed, 23 Mar 2011 06:57:31 +0000 (02:57 -0400)]
Updated Doxyfile, attempt to fix online file access

13 years agoMajor update to BamTools version 1.0
derek [Wed, 23 Mar 2011 06:37:39 +0000 (02:37 -0400)]
Major update to BamTools version 1.0

13 years agoAttempt to fix SamHeaderVersion compile bug
derek [Thu, 24 Feb 2011 16:36:12 +0000 (11:36 -0500)]
Attempt to fix SamHeaderVersion compile bug

13 years agoBug fix in SamHeaderVersion::SetVersion()
derek [Wed, 19 Jan 2011 17:57:13 +0000 (12:57 -0500)]
Bug fix in SamHeaderVersion::SetVersion()

13 years agoMissed bug fix in BamMultiMerger in early commit. Fixed now.
derek [Wed, 19 Jan 2011 17:08:52 +0000 (12:08 -0500)]
Missed bug fix in BamMultiMerger in early commit. Fixed now.

13 years agoAdded ExportHeader command for BamConstants.h
derek [Mon, 17 Jan 2011 19:49:32 +0000 (14:49 -0500)]
Added ExportHeader command for BamConstants.h

13 years agoRemoved SamHeaderValidatorPrivate pimpl. No real need for it since not exposed to...
derek [Mon, 17 Jan 2011 19:45:09 +0000 (14:45 -0500)]
Removed SamHeaderValidatorPrivate pimpl. No real need for it since not exposed to API, and harder to test

13 years agoAdded UNSORTED to BamMultiReader::SortOrder types. Unsorted BAMs are 'merged' through...
derek [Mon, 17 Jan 2011 19:42:42 +0000 (14:42 -0500)]
Added UNSORTED to BamMultiReader::SortOrder types. Unsorted BAMs are 'merged' through a simple reader queue.

13 years agoMinor formatting cleanup
derek [Thu, 13 Jan 2011 06:40:25 +0000 (01:40 -0500)]
Minor formatting cleanup

13 years agoMinor update to API version 0.9.3 - addition of SamHeader::SetHeaderText().
derek [Wed, 12 Jan 2011 22:47:04 +0000 (17:47 -0500)]
Minor update to API version 0.9.3 - addition of SamHeader::SetHeaderText().

13 years agoAdded BamConstants.h
derek [Wed, 12 Jan 2011 16:37:17 +0000 (11:37 -0500)]
Added BamConstants.h

13 years agoRemoved explicit keyword from SamHeader-related object copy ctors
derek [Wed, 12 Jan 2011 03:43:51 +0000 (22:43 -0500)]
Removed explicit keyword from SamHeader-related object copy ctors

13 years agoUpdate to BamTools API 0.9.2 with exposure of SamHeader object from BamReader and...
derek [Wed, 12 Jan 2011 03:37:31 +0000 (22:37 -0500)]
Update to BamTools API 0.9.2 with exposure of SamHeader object from BamReader and to BamWriter

13 years agoAdded explicit copy ctors to SamHeader data structures
derek [Wed, 12 Jan 2011 03:35:09 +0000 (22:35 -0500)]
Added explicit copy ctors to SamHeader data structures

13 years agoAdded SAM header-handling classes for read/write/validate.
derek [Fri, 24 Dec 2010 03:33:33 +0000 (22:33 -0500)]
Added SAM header-handling classes for read/write/validate.

  * Not fully connected to the BamReader/Writer API yet, but will be
phased in soon.
  * Will enable clients to query, modify & validate a BAM file's SAM
header data using the BamTools API, instead of having to use hand-rolled
string-parsing code on the result of BamReader::GetHeaderText().

13 years agoUpdated to 0.9.1
derek [Fri, 24 Dec 2010 02:26:02 +0000 (21:26 -0500)]
Updated to 0.9.1

 * With changes to BamMultiReader interface.

13 years agoImplemented proper -byname sorting (finally).
derek [Fri, 24 Dec 2010 02:14:49 +0000 (21:14 -0500)]
Implemented proper -byname sorting (finally).

  * BamMultiReader used to merge the "next" alignment based on (refID,
position). Extracted this and generalized to support merging on either
position OR alignment name.

13 years agoAdded static library to build step.
derek [Fri, 24 Dec 2010 01:56:01 +0000 (20:56 -0500)]
Added static library to build step.

 * Suggested & contributed by Rob Bradley.

13 years agoMoved BuildCharData() from BamReader to BamAlignment
derek [Wed, 22 Dec 2010 19:22:40 +0000 (14:22 -0500)]
Moved BuildCharData() from BamReader to BamAlignment

  * This will enable even "lazier" population of the alignment character
data later in analysis, outside the context of reading it from the BAM
file

13 years agoFixed: Improper sorting -byname
derek [Thu, 16 Dec 2010 17:33:32 +0000 (12:33 -0500)]
Fixed: Improper sorting -byname

13 years agoAdded creation of include/ folder in bamtools root directory at build time.
derek [Wed, 15 Dec 2010 20:39:54 +0000 (15:39 -0500)]
Added creation of include/ folder in bamtools root directory at build time.
 * API-related headers are copied here to provide an explicit target for client code.

13 years agoMinor formatting cleanup
derek [Mon, 13 Dec 2010 20:53:12 +0000 (15:53 -0500)]
Minor formatting cleanup

13 years agoMade BamAlignment flag queries symmetrical
derek [Mon, 13 Dec 2010 20:28:33 +0000 (15:28 -0500)]
Made BamAlignment flag queries symmetrical

 * For example: there is now a SetIsMapped() setter to match the
IsMapped() getter.  Before you had to reverse your logic on a few of the
flags (in this case, using SetIsUnmapped()).  Not impossible to use, but
not immediately obvious and intuitive, and hard to remember when to use
the opposite setter.  These older methods will remain available, but
should be considered deprecated.

13 years agoFixed: handling BamAlignments with limited char data
derek [Tue, 7 Dec 2010 18:02:24 +0000 (13:02 -0500)]
Fixed: handling BamAlignments with limited char data

13 years agoFixed : improper exit code from FilterTool
derek [Mon, 6 Dec 2010 21:30:13 +0000 (16:30 -0500)]
Fixed : improper exit code from FilterTool

13 years agoFixed: core mode setting for BamMultiReader::Open() in FilterTool
derek [Mon, 6 Dec 2010 17:02:18 +0000 (12:02 -0500)]
Fixed: core mode setting for BamMultiReader::Open() in FilterTool

  * Was opening with coreMode=true, which caused errors filtering the
first alignment's char data

13 years agoAdded new RevertTool to the toolkit
derek [Mon, 6 Dec 2010 04:11:03 +0000 (23:11 -0500)]
Added new RevertTool to the toolkit

  * "$ bamtools revert ... " will clear the IsDuplicate flag on
BamAlignments and replace the Qualities with the contents of the OQ tag.
  * Suggested by and draft implementation contributed by Al Ward.

13 years agoFixed: bug in the BamReader::Jump() codepath, specifically the
derek [Fri, 3 Dec 2010 20:45:20 +0000 (15:45 -0500)]
Fixed: bug in the BamReader::Jump() codepath, specifically the
BRP::AdjustRegion() logic

13 years agoMoved private implementation API files to internal directory for clearer separation...
derek [Mon, 22 Nov 2010 18:02:38 +0000 (13:02 -0500)]
Moved private implementation API files to internal directory for clearer separation. These should not be included by client code

13 years agoAdded proper import of bamtools version info from CMake
derek [Mon, 22 Nov 2010 17:48:00 +0000 (12:48 -0500)]
Added proper import of bamtools version info from CMake

13 years agoFixed BamRegion bug: previously only checked if refID was -1, needed to make sure...
derek [Mon, 22 Nov 2010 17:47:10 +0000 (12:47 -0500)]
Fixed BamRegion bug: previously only checked if refID was -1, needed to make sure all negative values were invalid

13 years agoContinued breaking up of monolithic classes: extracted BamStandardIndex & BamToolsInd...
derek [Fri, 19 Nov 2010 20:52:04 +0000 (15:52 -0500)]
Continued breaking up of monolithic classes: extracted BamStandardIndex & BamToolsIndex into their own source files.

13 years agoExtracted BamReaderPrivate & BamWriterPrivate from inner classes.
derek [Fri, 19 Nov 2010 17:41:54 +0000 (12:41 -0500)]
Extracted BamReaderPrivate & BamWriterPrivate from inner classes.
First step in breaking up the API's monolithic classes. Should allow easier maintenance, testing, and adding features as we go forward.

13 years agoAdded UTILS_EXPORT macro to classes in BamTools utility library
derek [Fri, 19 Nov 2010 16:14:54 +0000 (11:14 -0500)]
Added UTILS_EXPORT macro to classes in BamTools utility library

13 years agoAdded API_EXPORT macro to classes in BamTools API
derek [Fri, 19 Nov 2010 16:01:58 +0000 (11:01 -0500)]
Added API_EXPORT macro to classes in BamTools API

13 years agoRemoved commented (library export) definitions from utils & jsoncpp CMakeLists files
derek [Fri, 19 Nov 2010 15:42:40 +0000 (10:42 -0500)]
Removed commented (library export) definitions from utils & jsoncpp CMakeLists files

13 years agoMigrated to CMake build system.
derek [Fri, 19 Nov 2010 15:32:45 +0000 (10:32 -0500)]
Migrated to CMake build system.
* Please see README: Installation for help in building BamTools toolkit & API and integrating the new shared library into your application

13 years agoChanged GetNextAlignmentCore() calls to GetNextAlignment() in FilterTool
derek [Thu, 18 Nov 2010 00:41:29 +0000 (19:41 -0500)]
Changed GetNextAlignmentCore() calls to GetNextAlignment() in FilterTool

13 years agoMinor formatting cleanup
derek [Mon, 15 Nov 2010 19:54:27 +0000 (14:54 -0500)]
Minor formatting cleanup

13 years agoRemoved more non-standard STL calls from BamIndex.cpp
derek [Wed, 27 Oct 2010 16:54:38 +0000 (12:54 -0400)]
Removed more non-standard STL calls from BamIndex.cpp

13 years agoMerge branch 'master' of git://github.com/ekg/bamtools
derek [Wed, 27 Oct 2010 16:33:56 +0000 (12:33 -0400)]
Merge branch 'master' of git://github.com/ekg/bamtools

13 years agoRemoved non-standard stl::map method calls
derek [Wed, 27 Oct 2010 16:32:16 +0000 (12:32 -0400)]
Removed non-standard stl::map method calls

13 years agoMerge branch 'master' of http://github.com/pezmaster31/bamtools
Erik Garrison [Wed, 27 Oct 2010 16:08:22 +0000 (12:08 -0400)]
Merge branch 'master' of http://github.com/pezmaster31/bamtools

13 years agoclarified no-index behavior in bam multi reader
Erik Garrison [Wed, 27 Oct 2010 16:07:47 +0000 (12:07 -0400)]
clarified no-index behavior in bam multi reader

13 years agoUpdated BamTools version information.
derek [Mon, 25 Oct 2010 18:10:42 +0000 (14:10 -0400)]
Updated BamTools version information.

 * Also automated version information propagation forfuture updates.
   Only need to set version in top-level Makefile.

13 years agoUpdated README
derek [Sun, 24 Oct 2010 19:26:15 +0000 (15:26 -0400)]
Updated README

13 years agoMerge branch 'master' of git://github.com/ekg/bamtools
Derek [Thu, 21 Oct 2010 21:15:07 +0000 (17:15 -0400)]
Merge branch 'master' of git://github.com/ekg/bamtools

13 years agoUpdating README... still a work in progress
Derek [Thu, 21 Oct 2010 21:14:44 +0000 (17:14 -0400)]
Updating README... still a work in progress

13 years agoadd index caching mode setter to BamMultiReader
Erik Garrison [Thu, 21 Oct 2010 21:03:48 +0000 (17:03 -0400)]
add index caching mode setter to BamMultiReader

13 years agoFixed NoIndexCaching behavior
Derek [Thu, 21 Oct 2010 19:00:03 +0000 (15:00 -0400)]
Fixed NoIndexCaching behavior

 * Previous commit lacked the post-jump dump of index data when this
mode is selected.

13 years agoMerge branch 'master' of git://github.com/pezmaster31/bamtools
Derek [Thu, 21 Oct 2010 04:22:36 +0000 (00:22 -0400)]
Merge branch 'master' of git://github.com/pezmaster31/bamtools

13 years agoImplemented index cache mode for both BAI & BTI formats
Derek [Thu, 21 Oct 2010 04:19:40 +0000 (00:19 -0400)]
Implemented index cache mode for both BAI & BTI formats

 * Client code can now decide between 3 index cache modes:
   Full : save entire index data in memory
   Limited (default) : save only index data for current reference
   None : save no index data - only load data necessary for a single-

 * Required a major overhaul to BamIndex interface and derived classes.
   Lots of refactoring to move common code up to BamIndex.
   Derived classes now share much of the same method names &
organization.  Only implementation details differ, as needed.

 * Miscellaneous: moved BAMTOOLS_LFS definitions into BamAux.h & cleaned
up BGZF.h

13 years agoImplemented index cache mode for both BAI & BTI formats
Derek [Thu, 21 Oct 2010 04:19:40 +0000 (00:19 -0400)]
Implemented index cache mode for both BAI & BTI formats

 * Client code can now decide between 3 index cache modes:
   Full : save entire index data in memory
   Limited (default) : save only index data for current reference
   None : save no index data - only load data  necessary for a single-

 * Required a major overhaul to BamIndex interface and derived classes.
   Lots of refactoring to move common code up to BamIndex.
   Derived classes now share much of the same method names &
organization.  Only implementation details differ, as needed.

 * Miscellaneous: moved BAMTOOLS_LFS definitions into BamAux.h & cleaned
up BGZF.h

13 years agomodified/clarified some help & usage messages
Derek [Sat, 16 Oct 2010 20:45:08 +0000 (16:45 -0400)]
modified/clarified some help & usage messages

 * (also a test run for different git commit system on my end)

13 years agoChanged BamAlignment::SupportData from private to public.
Derek [Sat, 9 Oct 2010 23:54:03 +0000 (19:54 -0400)]
Changed BamAlignment::SupportData from private to public.

This should remove the access-control errors that occur when building BamTools with older, less-conforming compilers

13 years agoFixed: bug(s) related to empty references and regions.
Derek [Sat, 9 Oct 2010 23:28:42 +0000 (19:28 -0400)]
Fixed: bug(s) related to empty references and regions.

* NOTE - This fix does introduce a slight modification to the *.bti index format.
  So any existing BTI index files will need to be rebuilt to support the bug fix (apologies).