Skip to content
Snippets Groups Projects
Commit 8a63b8d7 authored by Aaron's avatar Aaron
Browse files

Changed error message when BAM is not qeury sorted in pairToBed

parent 2de3d386
No related branches found
No related tags found
No related merge requests found
...@@ -32,6 +32,7 @@ bool IsCorrectMappingForBEDPE (const BamAlignment &bam) { ...@@ -32,6 +32,7 @@ bool IsCorrectMappingForBEDPE (const BamAlignment &bam) {
Constructor Constructor
*/ */
BedIntersectPE::BedIntersectPE(string bedAFilePE, string bedBFile, float overlapFraction, BedIntersectPE::BedIntersectPE(string bedAFilePE, string bedBFile, float overlapFraction,
string searchType, bool sameStrand, bool diffStrand, bool bamInput, string searchType, bool sameStrand, bool diffStrand, bool bamInput,
bool bamOutput, bool uncompressedBam, bool useEditDistance) { bool bamOutput, bool uncompressedBam, bool useEditDistance) {
...@@ -419,7 +420,7 @@ void BedIntersectPE::IntersectBamPE(string bamFile) { ...@@ -419,7 +420,7 @@ void BedIntersectPE::IntersectBamPE(string bamFile) {
ProcessBamBlock(bam1, bam2, refs, writer); ProcessBamBlock(bam1, bam2, refs, writer);
} }
else { else {
cerr << "*****ERROR: -bedpe requires BAM to be sorted or grouped by query name. " << endl; cerr << "*****ERROR: BAM must be sorted by query name. " << endl;
exit(1); exit(1);
} }
} }
......
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