checkIndexType {Rbowtie2} | R Documentation |
This is an internal function that is not meant to be used outside of the package. It determines whether the given index library comprises of small indexes (.bt2) or large indexes (.bt2l).
checkIndexType(filePath)
filePath |
|
The function first tries to determine whether path_to_index_dir/index_basename.1.bt2 exists and if it doesn't exist then it tries to determine whether path_to_index_dir/index_basename.1.bt2l exists. If neither of those files exist then there is an issue with the index files that must be addressed.
Character
scalar. Returns either "SMALL" if the .bt2 file is found,
"LARGE" if the .bt2l file is found, or "ERROR" if neither the .bt2 nor .bt2l file
is found.