@@ -158,20 +158,20 @@ class MAFToGVCF {
158158
159159 if (splitGenomes.size == 1 ) {
160160 println (" getVariantContextsfromMAF:twoGvcfs is true but only 1 genome in the MAF file. Processing the single genome" )
161- mapOf (sampleName to buildVariantsForAllAlignments(sampleName, mafRecords, refSeqs, fillGaps,outJustGT,outputType, delAsSymbolic, maxDeletionSize , anchorwaveLegacy))
161+ mapOf (sampleName to buildVariantsForAllAlignments(mafRecords, refSeqs, fillGaps, outputType , anchorwaveLegacy))
162162 } else {
163- splitGenomes.mapIndexed { index, mafrecs ->
163+ splitGenomes.mapIndexed { index, splitMafRecords ->
164164 // append _1 and _2 to the sampleName for the split genomes
165165
166166 val genomeName = " ${sampleName} _${index + 1 } "
167167 println (" MAFToGVCF:getVariantContextsfromMAF: Splitting ${sampleName} into ${genomeName} " )
168- Pair (genomeName, buildVariantsForAllAlignments(genomeName, mafrecs, refSeqs, fillGaps, outJustGT, outputType, delAsSymbolic, maxDeletionSize , anchorwaveLegacy))
168+ Pair (genomeName, buildVariantsForAllAlignments(splitMafRecords, refSeqs, fillGaps, outputType, anchorwaveLegacy))
169169 }.toMap()
170170 }
171171
172172 } else {
173173 println (" getVariantContextsfromMAF: Processing a single genome" )
174- mapOf (sampleName to buildVariantsForAllAlignments(sampleName, mafRecords, refSeqs, fillGaps, outJustGT, outputType, delAsSymbolic, maxDeletionSize , anchorwaveLegacy))
174+ mapOf (sampleName to buildVariantsForAllAlignments(mafRecords, refSeqs, fillGaps, outputType, anchorwaveLegacy))
175175 }
176176
177177 }
@@ -238,14 +238,10 @@ class MAFToGVCF {
238238 * Function to build the variants for all the alignments.
239239 */
240240 fun buildVariantsForAllAlignments (
241- sampleName : String ,
242241 mafRecords : List <MAFRecord >,
243242 refGenomeSequence : Map <String , NucSeq >,
244243 fillGaps : Boolean ,
245- outJustGT : Boolean ,
246244 outputType : OUTPUT_TYPE ,
247- delAsSymbolic : Boolean ,
248- maxDeletionSize : Int ,
249245 anchorwaveLegacy : Boolean = false
250246 ): List <AssemblyVariantInfo > {
251247 var variantInfos = mutableListOf<AssemblyVariantInfo >()
0 commit comments