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

Allow headers to start with "chrom"

parent b4b12ca5
No related branches found
No related tags found
No related merge requests found
......@@ -188,9 +188,10 @@ void BedFile::GetLine(void) {
void BedFile::GetHeader(void) {
while(getline(*_bedStream, _bedLine))
{
if ( (_bedLine.find("#") != string::npos) ||
(_bedLine.find("browser") != string::npos) ||
(_bedLine.find("track") != string::npos) )
if ( (_bedLine.find("#") == 0) ||
(_bedLine.find("browser") == 0) ||
(_bedLine.find("track") == 0) ||
(_bedLine.find("chrom") == 0) )
{
_header += _bedLine + '\n';
}
......
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