if ( !File.directory?( file ) &&
file !~ /^\./ &&
file !~ /^00/ &&
- file =~ /^#{phylogeny_id}#{suffix_pattern}$/ )
+ file =~ /^#{phylogeny_id}.*#{suffix_pattern}$/ )
matching_files << file
end
}
if matching_files.length < 1
Util.fatal_error( PRG_NAME, 'no file matching [' + phylogeny_id +
- suffix_pattern + '] present in current directory' )
+ '...' + suffix_pattern + '] present in current directory' )
end
if matching_files.length > 1
- Util.fatal_error( PRG_NAME, 'more than one file matching [' + phylogeny_id +
- suffix_pattern + '] present in current directory' )
+ Util.fatal_error( PRG_NAME, 'more than one file matching [' +
+ phylogeny_id + '...' + suffix_pattern + '] present in current directory' )
end
matching_files[ 0 ]
end
}
if matching_files.length < 1
- Util.fatal_error( PRG_NAME, 'no seq file matching [' + phylogeny_id + '__] present in current directory' )
+ Util.fatal_error( PRG_NAME, 'no seq file matching [' +
+ phylogeny_id + '__] present in current directory' )
end
if matching_files.length > 1
- Util.fatal_error( PRG_NAME, 'more than one seq file matching [' + phylogeny_id + '__] present in current directory' )
+ Util.fatal_error( PRG_NAME, 'more than one seq file matching [' +
+ phylogeny_id + '__] present in current directory' )
end
matching_files[ 0 ]
end