Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bedtools2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
R3
legacy
bedtools2
Commits
0eb0f045
Commit
0eb0f045
authored
13 years ago
by
Aaron
Browse files
Options
Downloads
Patches
Plain Diff
Gussy.
parent
5f480366
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/chromsweep/chromsweep.cpp
+1
-62
1 addition, 62 deletions
src/chromsweep/chromsweep.cpp
with
1 addition
and
62 deletions
src/chromsweep/chromsweep.cpp
+
1
−
62
View file @
0eb0f045
...
...
@@ -77,6 +77,7 @@ bool after(const BED &a, const BED &b) {
return
(
a
.
start
>=
b
.
end
);
}
void
ChromSweep
::
ScanCache
()
{
if
(
_qy_status
!=
BED_INVALID
)
{
vector
<
BED
>::
iterator
c
=
_cache
.
begin
();
...
...
@@ -95,24 +96,6 @@ void ChromSweep::ScanCache() {
}
}
// void ChromSweep::ScanCache(const BED &curr_qy, BedLineStatus qy_status, vector<BED> &db_cache, vector<BED> &hits) {
// if (qy_status != BED_INVALID) {
// vector<BED>::iterator c = db_cache.begin();
// while (c != db_cache.end())
// {
// if ((curr_qy.chrom == c->chrom) && !(after(curr_qy, *c))) {
// if (overlaps(curr_qy.start, curr_qy.end, c->start, c->end) > 0) {
// hits.push_back(*c);
// }
// ++c;
// }
// else {
// c = db_cache.erase(c);
// }
// }
// }
// }
void
ChromSweep
::
ChromCheck
()
{
...
...
@@ -149,7 +132,6 @@ void ChromSweep::ChromCheck()
}
void
ChromSweep
::
ReportQuery
(
const
BED
&
query
)
{
_bedA
->
reportBedTab
(
query
);
}
...
...
@@ -183,46 +165,3 @@ bool ChromSweep::Next(pair<BED, vector<BED> > &next) {
else
{
return
false
;}
}
// void ChromSweep::Sweep() {
//
// int qy_lineNum = 0;
// int db_lineNum = 0;
//
// // current feature from each file
// BED curr_qy, curr_db;
//
// // status of the current lines
// BedLineStatus qy_status, db_status;
// vector<BED> db_cache;
// vector<BED> hits;
//
// // open the files; get the first line from each
// _bedA->Open();
// _bedB->Open();
// qy_status = _bedA->GetNextBed(_curr_qy, _qy_lineNum);
// db_status = _bedB->GetNextBed(_curr_db, _db_lineNum);
// while (!_bedA->Empty()) {
// // have we changed chromosomes?
// ChromCheck(curr_qy, curr_db, qy_status, db_status, qy_lineNum, db_lineNum, db_cache, hits);
// // scan the database cache for hits
// //db_cache = ScanCache(curr_qy, qy_status, db_cache, hits);
// ScanCache(curr_qy, qy_status, db_cache, hits);
// // advance the db until we are ahead of the query. update hits and cache as necessary
// while (!_bedB->Empty() &&
// curr_qy.chrom == curr_db.chrom &&
// !(after(curr_db, curr_qy)))
// {
// if (overlaps(curr_qy.start, curr_qy.end, curr_db.start, curr_db.end) > 0) {
// hits.push_back(curr_db);
// }
// db_cache.push_back(curr_db);
// db_status = _bedB->GetNextBed(curr_db, db_lineNum);
// }
// // report the hits for this query and reset for the next query
// //ReportHits(curr_qy, hits);
// _results.push(make_pair(curr_qy, hits));
// hits.clear();
// qy_status = _bedA->GetNextBed(curr_qy, qy_lineNum);
// }
// }
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment