Skip to content

Commit 0a41be6

Browse files
committed
include Makefile
1 parent 591aa30 commit 0a41be6

File tree

3 files changed

+36
-7
lines changed

3 files changed

+36
-7
lines changed

Makefile

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
CC := g++
2+
3+
CFLAGS := -std=c++11 -Wno-unused-command-line-argument -O2 -march=native
4+
CCLIBS := -lz -lpthread
5+
6+
TARGET := geva_v1beta
7+
8+
SUBDIRS := $(shell find ./src/ -type d)
9+
INCDIRS := $(addprefix -I, $(SUBDIRS))
10+
11+
SOURCES := $(shell find . -name '*.cpp')
12+
OBJECTS := $(patsubst %.cpp, %.o, $(SOURCES))
13+
14+
15+
all: $(TARGET)
16+
17+
%.o: %.cpp
18+
$(CC) $(CFLAGS) -flto $(INCDIRS) -c $< -o $@ $(CCLIBS)
19+
20+
$(TARGET): $(OBJECTS)
21+
$(CC) -o $(TARGET) -flto $(CFLAGS) $(OBJECTS) $(CCLIBS)
22+
23+
24+
.PHONY: clean
25+
26+
clean:
27+
@rm -f $(OBJECTS) $(TARGET)
28+
29+

src/age/AgeInfer.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ void Pair::print_header(std::ostream & stream, const Param::Data param, const bo
4242
else
4343
{
4444
// stream << " Fk SampleID0 Chr0 SampleID1 Chr1 Shared Missing Pass SegmentLHS SegmentRHS S_LHS S_RHS Shape Rate q25 q50 q75";
45-
stream << " Fk SampleID0 Chr0 SampleID1 Chr1 Shared Pass SegmentLHS SegmentRHS Shape Rate";
45+
stream << " SampleID0 Chr0 SampleID1 Chr1 Shared Pass SegmentLHS SegmentRHS Shape Rate";
4646
}
4747

4848
stream << std::endl;
@@ -87,7 +87,7 @@ void Pair::print(std::ostream & stream, const Param::Data param, const bool full
8787
const ChrType chr0 = this->pair.first.chromosome;
8888
const ChrType chr1 = this->pair.second.chromosome;
8989

90-
stream << site_ptr->fk << ' ';
90+
// stream << site_ptr->fk << ' ';
9191

9292
stream << this->pair.first.individual.value << ' ';
9393

@@ -111,7 +111,7 @@ void Pair::print(std::ostream & stream, const Param::Data param, const bool full
111111

112112
stream << ((this->sharing) ? '1': '0') << ' ';
113113

114-
stream << std::fixed << std::setprecision(8) << this->missing << ' ';
114+
// stream << std::fixed << std::setprecision(8) << this->missing << ' ';
115115

116116
stream << ((this->ccf[c].pass) ? '1': '0') << ' ';
117117

@@ -1115,7 +1115,7 @@ void Site::print_header(std::ostream & stream, const Param::Data param, const bo
11151115
else
11161116
{
11171117
// stream << " Fk N_Shared N_Others PostMean PostMode PostMedian PostCI025 PostCI975 Robust Lower Upper";
1118-
stream << " N_Shared N_Others PostMean PostMode PostMedian";
1118+
stream << " N_Concordant N_Discordant PostMean PostMode PostMedian";
11191119
}
11201120

11211121
stream << std::endl;

src/gen/GenShare.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ size_t Share::select(const std::set<size_t> & position, const Grid::Data grid)
180180
}
181181
}
182182

183-
printf("\n %lu \n", count);
183+
// printf("\n %lu \n", count);
184184

185185
if (count > 0)
186186
{
@@ -206,7 +206,7 @@ size_t Share::select(const std::set<size_t> & position, const Grid::Data grid)
206206
{
207207
count += index->second.sites.size();
208208
}
209-
printf("\n %lu \n", count);
209+
// printf("\n %lu \n", count);
210210
count = 0;
211211

212212

@@ -225,7 +225,7 @@ size_t Share::select(const std::set<size_t> & position, const Grid::Data grid)
225225
}
226226
}
227227

228-
printf("\n %lu \n", count);
228+
// printf("\n %lu \n", count);
229229

230230
this->clean_table();
231231

0 commit comments

Comments
 (0)