BDI-pathogens / phyloscanner

Phylogenetics between and within hosts at once, all along the genome.
GNU General Public License v3.0
44 stars 14 forks source link

some dually windows and some not: error #5

Closed ChrisHIV closed 7 years ago

ChrisHIV commented 7 years ago

If some MultipleInfections.InWindow_*.csv files are empty and some are not, DualPatientBlacklister.R breaks. The empty files go get skipped at the point

    if(file.size(file.name) == 0){
      cat('Skipping file ',file.name,' as it is empty\n')
    }

but later on there are two iterations over all suffices, each one with a call to read.table(). One of these calls crashes because it sees an empty file.

ChrisHIV commented 7 years ago

*do get skipped, not go get skipped.

mdhall272 commented 7 years ago

Hopefully fixed.