Skip to content
Snippets Groups Projects
Commit 296866f3 authored by arq5x's avatar arq5x
Browse files

Merge branch 'master' of https://github.com/arq5x/bedtools2

parents a60ae746 5926946c
No related branches found
No related tags found
No related merge requests found
...@@ -24,6 +24,8 @@ export CXXFLAGS = -Wall -O2 -D_FILE_OFFSET_BITS=64 -fPIC $(INCLUDES) ...@@ -24,6 +24,8 @@ export CXXFLAGS = -Wall -O2 -D_FILE_OFFSET_BITS=64 -fPIC $(INCLUDES)
export LIBS = -lz export LIBS = -lz
export BT_ROOT = src/utils/BamTools/ export BT_ROOT = src/utils/BamTools/
prefix = /usr/local
SUBDIRS = $(SRC_DIR)/annotateBed \ SUBDIRS = $(SRC_DIR)/annotateBed \
$(SRC_DIR)/bamToBed \ $(SRC_DIR)/bamToBed \
$(SRC_DIR)/bamToFastq \ $(SRC_DIR)/bamToFastq \
...@@ -107,6 +109,12 @@ all: print_banner $(OBJ_DIR) $(BIN_DIR) autoversion $(UTIL_SUBDIRS) $(SUBDIRS) ...@@ -107,6 +109,12 @@ all: print_banner $(OBJ_DIR) $(BIN_DIR) autoversion $(UTIL_SUBDIRS) $(SUBDIRS)
.PHONY: all .PHONY: all
install: all
mkdir -p $(DESTDIR)$(prefix)/bin
for file in bin/* ; do \
cp -f $$file $(DESTDIR)$(prefix)/bin; \
done
print_banner: print_banner:
@echo "Building BEDTools:" @echo "Building BEDTools:"
@echo "=========================================================" @echo "========================================================="
......
...@@ -136,7 +136,7 @@ void PairToPair::FindOverlaps(const BEDPE &a) { ...@@ -136,7 +136,7 @@ void PairToPair::FindOverlaps(const BEDPE &a) {
bool PairToPair::FindHitsOnBothEnds(const BEDPE &a, const vector<MATE> &qualityHitsEnd1, bool PairToPair::FindHitsOnBothEnds(const BEDPE &a, const vector<MATE> &qualityHitsEnd1,
const vector<MATE> &qualityHitsEnd2) { const vector<MATE> &qualityHitsEnd2) {
map<unsigned int, vector<MATE>, less<int> > hitsMap; map<unsigned int, vector<MATE>, less<unsigned int> > hitsMap;
for (vector<MATE>::const_iterator h = qualityHitsEnd1.begin(); h != qualityHitsEnd1.end(); ++h) { for (vector<MATE>::const_iterator h = qualityHitsEnd1.begin(); h != qualityHitsEnd1.end(); ++h) {
hitsMap[h->lineNum].push_back(*h); hitsMap[h->lineNum].push_back(*h);
...@@ -174,7 +174,7 @@ bool PairToPair::FindHitsOnBothEnds(const BEDPE &a, const vector<MATE> &qualityH ...@@ -174,7 +174,7 @@ bool PairToPair::FindHitsOnBothEnds(const BEDPE &a, const vector<MATE> &qualityH
void PairToPair::FindHitsOnEitherEnd(const BEDPE &a, const vector<MATE> &qualityHitsEnd1, void PairToPair::FindHitsOnEitherEnd(const BEDPE &a, const vector<MATE> &qualityHitsEnd1,
const vector<MATE> &qualityHitsEnd2) { const vector<MATE> &qualityHitsEnd2) {
map<unsigned int, vector<MATE>, less<int> > hitsMap; map<unsigned int, vector<MATE>, less<unsigned int> > hitsMap;
for (vector<MATE>::const_iterator h = qualityHitsEnd1.begin(); h != qualityHitsEnd1.end(); ++h) { for (vector<MATE>::const_iterator h = qualityHitsEnd1.begin(); h != qualityHitsEnd1.end(); ++h) {
hitsMap[h->lineNum].push_back(*h); hitsMap[h->lineNum].push_back(*h);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment