Hi
Thanks for your reply.
Using --fa as you said:
plink2 --bfile PlinkP\
--fa hs37d5.fa.zst\
--snps-only just-acgt\
--export vcf\
--out VCF
gives:
x samples (xx females, x males, x ambiguous; x founders) loaded from PlinkP.fam.
615002 out of 618540 variants loaded from PlinkP.bim.
x binary phenotype loaded (27 cases, 69 controls).
615002 variants remaining after main filters.
--export vcf to VCF.vcf ... done.
doesn't seem to change any output log information and have very similar contig lengths (1 less for each chromosome):
contig=<ID=1,length=249222527>
contig=<ID=2,length=243041411>
... other chromosomes ...
contig=<ID=Y,length=58856969>
contig=<ID=XY,length=155234707>
INFO=<ID=PR,Number=0,Type=Flag,Description="Provisional reference allele, may not be based on real reference genome">
FORMAT=<ID=GT,Number=1,Type=String,Description="Genotype">
I foud that if I use --ref-from-fa after --fa:
plink2 --bfile PlinkP\
--fa hs37d5.fa.zst --ref-from-fa\
--snps-only just-acgt\
--export vcf\
--out VCF
gives
x samples (x females, x males, x ambiguous; x founders) loaded from
PlinkP.fam.
615002 out of 618540 variants loaded from PlinkP.bim.
x binary phenotype loaded (x cases, x controls).
615002 variants remaining after main filters.
--ref-from-fa: 42847 variants changed, 265698 validated.
--export vcf to VCF.vcf ... done.
but again no change to contig lengths from above:
contig=<ID=1,length=249222527>
contig=<ID=2,length=243041411>
... other Chromosomes ...
contig=<ID=Y,length=58856969>
contig=<ID=XY,length=155234707>
INFO=<ID=PR,Number=0,Type=Flag,Description="Provisional reference allele, may not be based on real reference genome">
FORMAT=<ID=GT,Number=1,Type=String,Description="Genotype">
Do you have any idea why the contigs are still not changing?
The files we are using don't appear to be corrupt or anything.
Agian thanks for your help!