How can I count the number of variants (lines) and samples in a vcf file using simple bash commands (not using vcftools, bcftools, gatk or another packages)?
Can I use wc -l
for variants? How can I get rid of the lines which do not represent variants? Is there any similar wc command that would give me the number of samples?
Each of my chromosomes is one file.
Thank you!