forked from voutcn/megahit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
421 additions
and
473 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Compiled Object files | ||
*.slo | ||
*.lo | ||
*.o | ||
*.obj | ||
|
||
# Compiled Dynamic libraries | ||
*.so | ||
*.dylib | ||
*.dll | ||
|
||
# Compiled Static libraries | ||
*.lai | ||
*.la | ||
*.a | ||
*.lib | ||
|
||
# Executables | ||
*.exe | ||
*.out | ||
*.app | ||
|
||
# ctags | ||
*.tags | ||
*.tags_sorted_by_file | ||
|
||
# Other library | ||
|
||
# Sublime Text file | ||
sftp-config.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
### 0.1.1 beta / 2014-10-02 | ||
|
||
Enhancements: | ||
|
||
* Add change log | ||
* More detailed README for input format | ||
* Use `CompactSequence` in `UnitigGraphs` | ||
* Remove unused parallel sorting codes | ||
|
||
Bug Fixes: | ||
|
||
* Fixed wrong computation of `word_per_read` in `cx1_functions.cpp` | ||
* Fixed crash in `FastxReader` if the file is empty | ||
* Fixed floating point error in `assembly_algorithms.cpp` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,8 @@ | |
* @author Yu Peng ([email protected]) | ||
* @version 1.0.0 | ||
* @date 2011-08-02 | ||
* @modified by Dinghua Li | ||
* @date 2014-10-02 | ||
*/ | ||
|
||
#ifndef __BASIC_BIT_OPERATION_H_ | ||
|
@@ -55,11 +57,31 @@ inline void ReverseComplement(uint64_t &value) | |
value = ~value; | ||
} | ||
|
||
inline void ReverseComplement(uint8_t &value) | ||
// inline void ReverseComplement(uint8_t &value) | ||
// { | ||
// value = ((value & kSwap8Mask4) << 4) | ((value & ~kSwap8Mask4) >> 4); | ||
// value = ((value & kSwap8Mask2) << 2) | ((value & ~kSwap8Mask2) >> 2); | ||
// value = ~value; | ||
// } | ||
|
||
// inline void Reverse(uint8_t &value) | ||
// { | ||
// value = ((value & kSwap8Mask4) << 4) | ((value & ~kSwap8Mask4) >> 4); | ||
// value = ((value & kSwap8Mask2) << 2) | ((value & ~kSwap8Mask2) >> 2); | ||
// } | ||
|
||
inline uint8_t ReverseComplement(uint8_t value) | ||
{ | ||
value = ((value & kSwap8Mask4) << 4) | ((value & ~kSwap8Mask4) >> 4); | ||
value = ((value & kSwap8Mask2) << 2) | ((value & ~kSwap8Mask2) >> 2); | ||
value = ~value; | ||
return ~value; | ||
} | ||
|
||
inline uint8_t Reverse(uint8_t value) | ||
{ | ||
value = ((value & kSwap8Mask4) << 4) | ((value & ~kSwap8Mask4) >> 4); | ||
value = ((value & kSwap8Mask2) << 2) | ((value & ~kSwap8Mask2) >> 2); | ||
return value; | ||
} | ||
|
||
inline int BitCount(uint8_t x) | ||
|
Oops, something went wrong.