Skip to content

Commit

Permalink
v10.5 - check for sorted BED
Browse files Browse the repository at this point in the history
  • Loading branch information
valeu committed Mar 17, 2017
1 parent bae2244 commit f41a414
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 78 deletions.
10 changes: 10 additions & 0 deletions src/ChrCopyNumber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1458,6 +1458,16 @@ void ChrCopyNumber::fillCGprofile(std::string const& chrFolder) {
//count = end;
//and delete prefix in text;
int howMuchToDelete = nextStart - start;
if (howMuchToDelete<0) {
cerr << "Error: your BED file with coordinates of targeted regions does not seem to be sorted\nCheck chromosome "<<chromosome_<<"\n";
cout << "Exit Control-FREEC: before reruning, please, sort the BED file with coordinates of the targeted regions\n";
exit(-1);
}
if (howMuchToDelete==0) {
cerr << "Error: your BED file with coordinates of targeted regions may contain duplicates\nCheck chromosome "<<chromosome_<<"\n";
cout << "Exit Control-FREEC: before reruning sort the BED file with coordinates of the targeted regions and REMOVE DUPLICATED REGIONS\n";
exit(-1);
}
text = text.substr(howMuchToDelete);
} else {
text = "";
Expand Down
52 changes: 0 additions & 52 deletions src/RSSerror.cpp

This file was deleted.

25 changes: 0 additions & 25 deletions src/RSSerror.h

This file was deleted.

Binary file modified src/freec
Binary file not shown.
2 changes: 1 addition & 1 deletion src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#define VERSION_H

const double VERSION_OFFSET = 3;
const double FREEC_VERSION = 10.4;
const double FREEC_VERSION = 10.5;
const double CONTROL_FREEC_VERSION = FREEC_VERSION - VERSION_OFFSET;

#endif

0 comments on commit f41a414

Please sign in to comment.