i used the -merge_ref_panels_output_ref option to generate the merged dataset used in a study from two different reference panels. the output is two files, a hap, and a legend file. i need to transform this output to vcf for further study but i can't find the way to do it.
looking at shapeit the input should be hap/leged/sample or hap/sample, and IMPUTE2 does not provide the sample file as part of the output. and i don't know if i should use the sample files for the two original input reference panels used, as i am not sure which samples will still be there in the merged output or in which order!!!?
so my question is this, is there a way to transform the hap/legend set to a vcf file? and if there is no way out of using a sample file, then how can this be generated keeping in mind that IMPUTE2 is generating the merged output based on imputing one reference panel into the other?
thank you all in advance.