Skip to content

paftools sam2paf: Fix edge case for an empty trailing line in sam file#1343

Open
cihga39871 wants to merge 1 commit intolh3:masterfrom
cihga39871:master
Open

paftools sam2paf: Fix edge case for an empty trailing line in sam file#1343
cihga39871 wants to merge 1 commit intolh3:masterfrom
cihga39871:master

Conversation

@cihga39871
Copy link

Handle edge case for trailing lines in input.

It happens when I try to run paftools.js sam2paf XX.sam, and the sam file contains an empty line at the end of the file. Because sometimes sam files are generated by different programs, some programs might leave a trailing line like a normal txt file. This small fix makes paftools more robust.

Handle edge case for trailing lines in input.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant