No need to double overload the file constructor

This commit is contained in:
Mauricio Carneiro 2011-07-15 15:19:10 -04:00
parent 633b764877
commit 224d373997
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ object QScriptUtils {
* Returns the number of contigs in the BAM file header.
*/
def getNumberOfContigs(bamFile: File): Int = {
val samReader = new SAMFileReader(new File(bamFile))
val samReader = new SAMFileReader(bamFile)
samReader.getFileHeader.getSequenceDictionary.getSequences.size()
}