We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
const std::string FilterTool::FilterToolPrivate::GetScriptContents() loops indefinitely due to fgets() not setting eof flag if the call returns data on those platforms.
const std::string FilterTool::FilterToolPrivate::GetScriptContents()
fgets()
The fgetc/ungetc calls then set/clear eof flag indefinitely.
This can be reproduced with bamtools filter -script filter_script -in ./tests/data/sam_spec_example.bam -out out.bam
bamtools filter -script filter_script -in ./tests/data/sam_spec_example.bam -out out.bam
filter_script
{ "filters" : [ { "id" : "inAnyErrorReadGroup", "tag" : "RG:ERR*" }, { "id" : "highMapQuality", "mapQuality" : ">=75" }, { "id" : "bothMatesMapped", "isMapped" : "true", "isMateMapped" : "true" } ], "rule" : "!inAnyErrorReadGroup & (highMapQuality | bothMatesMapped)" }
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
const std::string FilterTool::FilterToolPrivate::GetScriptContents()
loops indefinitely due tofgets()
not setting eof flag if the call returns data on those platforms.The fgetc/ungetc calls then set/clear eof flag indefinitely.
This can be reproduced with
bamtools filter -script filter_script -in ./tests/data/sam_spec_example.bam -out out.bam
filter_script
The text was updated successfully, but these errors were encountered: