Hi, I ran into a segmentation fault in "agc create" that was caused by empty gzip archives being included in the input files.
This pull request fixes the segfault by adding a check to CAGCCompressor::AddSampleFiles for whether the input file being read with gio.ReadContigRaw actually returned any contigs. If no contigs were returned the file is ignored and the program prints out the message Warning: Pair sample_name:file_path " << sf.first << ":" << sf.second << " contains no contigs and will not be included in the archive! to inform the user that this file won't be in the archive.
Thanks for creating agc, it's very impressive and useful.
Hi, I ran into a segmentation fault in "agc create" that was caused by empty gzip archives being included in the input files.
This pull request fixes the segfault by adding a check to
CAGCCompressor::AddSampleFiles
for whether the input file being read withgio.ReadContigRaw
actually returned any contigs. If no contigs were returned the file is ignored and the program prints out the messageWarning: Pair sample_name:file_path " << sf.first << ":" << sf.second << " contains no contigs and will not be included in the archive!
to inform the user that this file won't be in the archive.Thanks for creating agc, it's very impressive and useful.