Hi Pierre!
Thanks for the quick answer. I've been taking a look and playing around with bedtools makewindows but I believe it's not exactly what I need, maybe I missed out on explaining a bit more about my input.
What I need to split due to (possible) size limitations are .vcf files obtained from TCGA, not a human genome that can be divided in equal-sized windows as I would lose the position (POS) of each variant called and VEP would not return the desired result which is adding more columns with extra information for each variant.
I have each .vcf separated by chromosome and I can also further do it by their FILTER ("PASS" or "."), but it doesn't seem to be enough to work correctly.
##above we have ~200 lines more of the vcf header
##bcftools_pluginCommand=plugin missing2ref --output-type v --output PCA.r1.TCGAbarcode.merge.tnSwapCorrected.10389.X.pass.fix.split.miss2ref.vcf PCA.r1.TCGAbarcode.merge.tnSwapCorrected.10389.X.pass.fix.split.vcf.gz; Date=Wed May 5 01:16:55 2021
##bcftools_concatVersion=1.9+htslib-1.9
##bcftools_concatCommand=concat -o PCA.r1.TCGAbarcode.merge.tnSwapCorrected.10389.X.pass.noinfo.fix.split.miss2ref.vcf PCA.r1.TCGAbarcode.merge.tnSwapCorrected.10389.X.pass.fix.split.miss2ref.vcf.gz /bio/scratch/sosug32/Data/TCGA/TCGA_Germline/TCGA-TG_Noinfo/PCA.r1.TCGAbarcode.merge.tnSwapCorrected.10389.X.noinfo.fix.split.miss2ref.vcf.gz; Date=Wed May 5 03:43:16 2021
#CHROM POS ID REF ALT QUAL FILTER INFO FORMAT TCGA-02-0003-10A-01D-1490-08 TCGA-02-0033-10A-01D-1490-08 TCGA-02-0047-10A-01D-1490-08
X 60052 . T A . PASS AC=2;AN=2 GT 0/0 0/0 0/0
X 60147 . A G 92.9 . AC=2;AN=2 GT 0/0 0/0 0/0
X 60185 . T C 219.8 . AC=35;AN=38 GT 0/0 0/0 0/0
X 60215 . A C 340.77 . AC=59;AN=64 GT 0/0 0/0 0/0
X 60256 . C G 242.78 . AC=9;AN=12 GT 0/0 0/0 0/0
X 60336 . G A 601.77 . AC=55;AN=60 GT 0/0 0/0 0/0
X 60337 . C T 601.77 . AC=53;AN=58 GT 0/0 0/0 0/0
X 60408 . A C 175.77 . AC=2;AN=4 GT 0/0 0/0 0/0
X 60425 . C A 206.77 . AC=8;AN=12 GT 0/0 0/0 0/0
X 60454 . A G 356.78 . AC=58;AN=62 GT 0/0 0/0 0/0
X 60466 . T C 526.77 . AC=68;AN=72 GT 0/0 0/0 0/0
X 60579 . G A 470.77 . AC=70;AN=74 GT 0/0 0/0 0/0
X 60583 . G C 560.77 . AC=71;AN=76 GT 0/0 0/0 0/0
X 60593 . A T 590.77 . AC=66;AN=72 GT 0/0 0/0 0/0
X 60604 . G A 200.84 . AC=3;AN=4 GT 0/0 0/0 0/0
X 60692 . T C 343.77 . AC=67;AN=74 GT 0/0 0/0 0/0
X 60727 . G A 145.41 . AC=3;AN=4 GT 0/0 0/0 0/0
X 60814 . G C 196.84 . AC=4;AN=6 GT 0/0 0/0 0/0
I'm looking for something akin to bash's $split -n l/8 -a 1 chr.vcf chr.split_preffix to divide each file into equal sized ones, but I've been advised to not remove the header and paste it after splitting with bash as that can tinker with the .vcf in a bad way, leading to some possible information loss.
I've tried to find a tool that would split the .vcf in a similar fashion to taking the previous example and obtaining various files:
##above we have ~200 lines more of the vcf header
##bcftools_pluginCommand=plugin missing2ref --output-type v --output PCA.r1.TCGAbarcode.merge.tnSwapCorrected.10389.X.pass.fix.split.miss2ref.vcf PCA.r1.TCGAbarcode.merge.tnSwapCorrected.10389.X.pass.fix.split.vcf.gz; Date=Wed May 5 01:16:55 2021
##bcftools_concatVersion=1.9+htslib-1.9
##bcftools_concatCommand=concat -o PCA.r1.TCGAbarcode.merge.tnSwapCorrected.10389.X.pass.noinfo.fix.split.miss2ref.vcf PCA.r1.TCGAbarcode.merge.tnSwapCorrected.10389.X.pass.fix.split.miss2ref.vcf.gz /bio/scratch/sosug32/Data/TCGA/TCGA_Germline/TCGA-TG_Noinfo/PCA.r1.TCGAbarcode.merge.tnSwapCorrected.10389.X.noinfo.fix.split.miss2ref.vcf.gz; Date=Wed May 5 03:43:16 2021
#CHROM POS ID REF ALT QUAL FILTER INFO FORMAT TCGA-02-0003-10A-01D-1490-08 TCGA-02-0033-10A-01D-1490-08 TCGA-02-0047-10A-01D-1490-08
X 60052 . T A . PASS AC=2;AN=2 GT 0/0 0/0 0/0
X 60147 . A G 92.9 . AC=2;AN=2 GT 0/0 0/0 0/0
X 60185 . T C 219.8 . AC=35;AN=38 GT 0/0 0/0 0/0
X 60215 . A C 340.77 . AC=59;AN=64 GT 0/0 0/0 0/0
X 60256 . C G 242.78 . AC=9;AN=12 GT 0/0 0/0 0/0
X 60336 . G A 601.77 . AC=55;AN=60 GT 0/0 0/0 0/0
X 60337 . C T 601.77 . AC=53;AN=58 GT 0/0 0/0 0/0
X 60408 . A C 175.77 . AC=2;AN=4 GT 0/0 0/0 0/0
X 60425 . C A 206.77 . AC=8;AN=12 GT 0/0 0/0 0/0
X 60454 . A G 356.78 . AC=58;AN=62 GT 0/0 0/0 0/0
##above we have ~200 lines more of the vcf header
##bcftools_pluginCommand=plugin missing2ref --output-type v --output PCA.r1.TCGAbarcode.merge.tnSwapCorrected.10389.X.pass.fix.split.miss2ref.vcf PCA.r1.TCGAbarcode.merge.tnSwapCorrected.10389.X.pass.fix.split.vcf.gz; Date=Wed May 5 01:16:55 2021
##bcftools_concatVersion=1.9+htslib-1.9
##bcftools_concatCommand=concat -o PCA.r1.TCGAbarcode.merge.tnSwapCorrected.10389.X.pass.noinfo.fix.split.miss2ref.vcf PCA.r1.TCGAbarcode.merge.tnSwapCorrected.10389.X.pass.fix.split.miss2ref.vcf.gz /bio/scratch/sosug32/Data/TCGA/TCGA_Germline/TCGA-TG_Noinfo/PCA.r1.TCGAbarcode.merge.tnSwapCorrected.10389.X.noinfo.fix.split.miss2ref.vcf.gz; Date=Wed May 5 03:43:16 2021
#CHROM POS ID REF ALT QUAL FILTER INFO FORMAT TCGA-02-0003-10A-01D-1490-08 TCGA-02-0033-10A-01D-1490-08 TCGA-02-0047-10A-01D-1490-08
X 60466 . T C 526.77 . AC=68;AN=72 GT 0/0 0/0 0/0
X 60579 . G A 470.77 . AC=70;AN=74 GT 0/0 0/0 0/0
X 60583 . G C 560.77 . AC=71;AN=76 GT 0/0 0/0 0/0
X 60593 . A T 590.77 . AC=66;AN=72 GT 0/0 0/0 0/0
X 60604 . G A 200.84 . AC=3;AN=4 GT 0/0 0/0 0/0
X 60692 . T C 343.77 . AC=67;AN=74 GT 0/0 0/0 0/0
X 60727 . G A 145.41 . AC=3;AN=4 GT 0/0 0/0 0/0
X 60814 . G C 196.84 . AC=4;AN=6 GT 0/0 0/0 0/0
Maybe I'm using bedtools makewindows incorrectly but in my case I cannot make windows of equal size as each variant could be a SNP or an INDEL and it also doesn't identify possible windows to be created within my variants positions.