File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
src/main/kotlin/biokotlin/util Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -25,11 +25,13 @@ private val myLogger = LogManager.getLogger("biokotlin.util.MergeGVCFUtils")
25
25
*/
26
26
object MergeGVCFUtils {
27
27
28
- fun mergeGVCFs (inputDir : String , outputFile : String , bedfile : String? = null) {
28
+ fun mergeGVCFs (inputDir : String , outputFile : String , bedFile : String? = null) {
29
+ mergeGVCFs(getGVCFFiles(inputDir), outputFile, bedFile)
30
+ }
29
31
30
- runBlocking {
32
+ fun mergeGVCFs ( inputFiles : List < String >, outputFile : String , bedFile : String? = null) {
31
33
32
- val inputFiles = getGVCFFiles(inputDir)
34
+ runBlocking {
33
35
34
36
require(validateVCFs(inputFiles).valid) { " Some GVCF files are invalid." }
35
37
@@ -70,12 +72,12 @@ object MergeGVCFUtils {
70
72
71
73
}
72
74
73
- val theBedfile = bedfile ?.trim()
75
+ val theBedfile = bedFile ?.trim()
74
76
if (theBedfile.isNullOrEmpty()) {
75
77
myLogger.info(" Writing output: $outputFile " )
76
78
writeOutputVCF(outputFile, samples, variantContextChannel)
77
79
} else {
78
- myLogger.info(" Writing output files with base name: $outputFile and bedfile: $bedfile " )
80
+ myLogger.info(" Writing output files with base name: $outputFile and bedfile: $bedFile " )
79
81
writeOutputVCF(outputFile, theBedfile, samples, variantContextChannel)
80
82
}
81
83
You can’t perform that action at this time.
0 commit comments