No need to double overload the file constructor
This commit is contained in:
parent
633b764877
commit
224d373997
|
|
@ -38,7 +38,7 @@ object QScriptUtils {
|
||||||
* Returns the number of contigs in the BAM file header.
|
* Returns the number of contigs in the BAM file header.
|
||||||
*/
|
*/
|
||||||
def getNumberOfContigs(bamFile: File): Int = {
|
def getNumberOfContigs(bamFile: File): Int = {
|
||||||
val samReader = new SAMFileReader(new File(bamFile))
|
val samReader = new SAMFileReader(bamFile)
|
||||||
samReader.getFileHeader.getSequenceDictionary.getSequences.size()
|
samReader.getFileHeader.getSequenceDictionary.getSequences.size()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue