JaneliaSciComp / msg

Multiplexed Shotgun Genotyping
http://genomics.princeton.edu/AndolfattoLab/MSG.html
11 stars 12 forks source link

Bug: Don't require blank line on last line of barcodes file #3

Closed JaneliaSciComp closed 12 years ago

gregpinero commented 12 years ago

I looked through the code and I don't see anything that looks like it would skip the last line.

I've also been running MSG without an extra blank line at the end of the barcodes file and haven't been able to reproduce any issue.

Could this have been an issue that was already fixed?

JaneliaSciComp commented 12 years ago

I found it. wc -l only counts the number of newlines so when the last line doesn't have a \n its count is off.

I switched it to use some perl code to do the line count instead. I can now run successfully even when the last line has no newline.