-
Notifications
You must be signed in to change notification settings - Fork 0
Pro tips
Nikita Tikhomirov edited this page Nov 21, 2024
·
3 revisions
Alternatively, use
bcftools query -l
to get a list of samples in a VCF file.
tabix -H file.vcf.gz | gawk -F"\t" '/#CHROM/{for (i=10;i<=NF;i++) print $i, "the_only_group"}'
tabix -H file.vcf.gz | gawk -F"\t" '/#CHROM/{for (i=10;i<=NF;i++) print $i, $i}'
Using spectre for network inference
Can take quite some time for several hundreds of samples!
piawka --nopi -v file.vcf.gz -g divide | piawka2nexus > dist.nex
netmake -o neighbornet dist.nex