Skip to content

Commit 3a59b57

Browse files
committed
delly v0.7.9
1 parent 6086988 commit 3a59b57

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ bindir ?= $(exec_prefix)/bin
1313

1414
# Flags
1515
CXX=g++
16-
CXXFLAGS += -isystem ${EBROOTHTSLIB} -pedantic -W -Wall -Wno-unknown-pragmas -D__STDC_LIMIT_MACROS -fno-strict-aliasing
16+
CXXFLAGS += -isystem ${EBROOTHTSLIB} -pedantic -W -Wall -Wno-unknown-pragmas -D__STDC_LIMIT_MACROS -fno-strict-aliasing -fpermissive
1717
LDFLAGS += -L${EBROOTHTSLIB} -L${EBROOTHTSLIB}/lib -lboost_iostreams -lboost_filesystem -lboost_system -lboost_program_options -lboost_date_time
1818

1919
# Flags for parallel computation

src/coverage.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ annotateCoverage(TConfig& c, TSampleLibrary& sampleLib, TCovRecord& ict, TCovera
622622

623623
// Get the library information
624624
int32_t libIdx = 0;
625-
if (!c.ignoreRG) libIdx = _findLib(rec, sampleLib[file_c]);
625+
if ((c.readgroups) && (sampleLib[file_c].size() > 1)) libIdx = _findLib(rec, sampleLib[file_c]);
626626
if (sampleLib[file_c][libIdx].median == 0) continue; // Single-end library or non-valid library
627627

628628
// Normal spanning pair

src/delly.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ struct Config {
8181
int32_t indelsize;
8282
uint32_t graphPruning;
8383
float flankQuality;
84-
bool ignoreRG;
84+
bool readgroups;
8585
bool indels;
8686
bool hasExcludeFile;
8787
bool hasVcfFile;
@@ -208,7 +208,7 @@ _annotateCoverage(TConfig& c, bam_hdr_t* hdr, TSampleLib& sampleLib, TSVs& svs,
208208
for(uint32_t file_c = 0; file_c < c.files.size(); ++file_c) {
209209
countMap[file_c].resize(svs.size());
210210
for (uint32_t id = 0; id < svs.size(); ++id) {
211-
if ((c.indels) && (svSize[id] <= c.indelsize)) {
211+
if (svSize[id] <= c.indelsize) {
212212
countMap[file_c][id].rc = readCountMap[file_c][id].first;
213213
countMap[file_c][id].leftRC = readCountMap[file_c][id + lastId].first;
214214
countMap[file_c][id].rightRC = readCountMap[file_c][id + 2*lastId].first;
@@ -596,8 +596,8 @@ int delly(int argc, char **argv) {
596596
else c.indels = false;
597597

598598
// Read-group aware calling
599-
if (vm.count("readgroup")) c.ignoreRG = false;
600-
else c.ignoreRG = true;
599+
if (vm.count("readgroup")) c.readgroups = true;
600+
else c.readgroups = false;
601601

602602
// Run main program
603603
c.aliscore = DnaScore<int>(5, -4, -10, -1);

src/shortpe.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@ namespace torali
804804

805805
// Library
806806
int32_t libIdx = 0;
807-
if (!c.ignoreRG) libIdx = _findLib(rec, sampleLib[file_c]);
807+
if ((c.readgroups) && (sampleLib[file_c].size() > 1)) libIdx = _findLib(rec, sampleLib[file_c]);
808808
if (sampleLib[file_c][libIdx].median == 0) continue; // Single-end library
809809

810810
// Check library-specific insert size for deletions

src/util.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ namespace torali
383383

384384
// Get read groups
385385
bool rgPresent = false;
386-
if (!c.ignoreRG) {
386+
if (c.readgroups) {
387387
std::string header(hdr[file_c]->text);
388388
std::string delimiters("\n");
389389
typedef std::vector<std::string> TStrParts;
@@ -429,7 +429,7 @@ namespace torali
429429
++alignmentCount;
430430

431431
std::string rG = "DefaultLib";
432-
if (!c.ignoreRG) {
432+
if (c.readgroups) {
433433
uint8_t *rgptr = bam_aux_get(rec, "RG");
434434
if (rgptr) {
435435
char* rg = (char*) (rgptr + 1);

src/version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace torali
2828
{
2929

3030

31-
std::string dellyVersionNumber = "0.7.8";
31+
std::string dellyVersionNumber = "0.7.9";
3232

3333
inline
3434
void printTitle(std::string const& title)

0 commit comments

Comments
 (0)