I have also tried this link. But when uploading the file to the Michigan Imputation Server, it gives the following error:
Unable to parse header with error: Your input file has a malformed header: We never saw the required CHROM header line (starting with one #) for the input VCF file
and my vcf does have the #CHROM header:
line 44: #CHROM POS ID REF ALT QUAL FILTER INFO FORMAT 4023 (...)
line 45: 10 111955 rs7909677 A G . PASS PR;REMAP_ALIGN=FP GT 0/0 (...)
ucsc liftover and picard liftovervcf
I tried with picard liftovervcf, but it gives me an empty file (it only has the header lines), while all variants go to the rejected_variants.vcf
java -jar picard.jar LiftoverVcf I=chr11.vcf O=chr11b.vcf CHAIN=hg18ToHg19.over.chain REJECT=rejected_variants.vcf R=ucsc.hg19.fasta
check the chromosome nomenclature (chr1 vs 1)
Yes, that was it. Silly mistake sorry
Still, the output file has 237.905 lines and the rejected_variants file has 436.954 lines, which seems a lot. Is it expectable?
It also gives me this warning: WARNING LiftoverVcf 137518 variants with a swapped REF/ALT were identified, but were not recovered.