fun secondaryIndexFileName(data: File): File? { val extensionIndex: Int = data.getName().lastIndexOf('.') return if (extensionIndex != -1) { File( data.getParentFile(), data.getName().substring(0, extensionIndex) + BamIndexer.BAM_INDEX_EXTENSION ) } else indexFileName(data) }
Get the secondary possible name for an index to have for a given data file ( Will return same as indexFileName if there is no file extension )