Skip to content
Snippets Groups Projects
Commit 705c2aaa authored by Aaron's avatar Aaron
Browse files

Add'l comments.

parent 250d1546
No related branches found
No related tags found
No related merge requests found
......@@ -191,7 +191,7 @@ void BedFile::GetHeader(void) {
_lineNum++;
// look for header lines. ^# headers can span multiple lines,
// but ^[browser|track|chrom] headers must occur on the 1st line.
if ( (_bedLine.find("#") == 0) ||
if ( (_bedLine.find("#") == 0) ||
((_bedLine.find("browser") == 0) && (_lineNum == 1)) ||
((_bedLine.find("track") == 0) && (_lineNum == 1)) ||
((_bedLine.find("chrom") == 0) && (_lineNum == 1))
......@@ -199,6 +199,9 @@ void BedFile::GetHeader(void) {
{
_header += _bedLine + '\n';
}
// we are done with the header. stop looking
// and indicate that the first data line has been read
// (i.e., _bedLine now houses the first data line)
else
{
_firstLine = true;
......
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