Skip to main content

How to create a samplesheet

A samplesheet describes the structure of your input genotyping datasets. It's needed because the structure of input data can be very different across use cases (e.g. different file formats, directories, and split vs. unsplit by chromosome).

tip

Samplesheets can be in CSV, TSV, JSON, or YAML format

Warnings before you get started

Preparing your target genomes
  • pgsc_calc works best with cohort data
  • Scores calculated for low sample sizes will generate warnings in the output report
  • You should merge your genomes if they are split per individual before using pgsc_calc
Chromosomes
  • In the initial release only autosomes are supported (1-22)
  • X, Y, and MT support will be added in the next release
Imputation and WGS support
  • Array data should be imputed (e.g. TopMed/Michigan) to increase variant density
  • If you use unimputed array data then many scores will probably fail to calculate
  • wgs support will be added in v3-rc2
Sample batches aren't supported yet, and low sample sizes aren't great
  • A target genome must contain every sample in a single file
  • For example, this means that splitting VCFs into batches of 100,000 samples is not supported (chrom1_batch1, chrom1_batch2, ...)
  • This limitation will be removed in a future release candidate

Samplesheet structure

Column nameMandatoryDescription
samplesetA text string (no spaces) referring to the name of a target dataset of genotyping data containing at least one sample/individual. Data from a sampleset may be input as a single file, or split across chromosomes into multiple files.
pathShould be set to the path of the target genome file. Absolute paths are best.
chromAn integer (range 1-22) or string (X, Y). If the target genomic data file contains multiple chromosomes, leave empty. Don't use a mix of empty and integer chromosomes in the same sampleset.
file_formatThe file format of the target genomes. Currently supports bgen and vcf.
genotyping_methodHow were genotypes called? array or wgs
bgen_sample_filePath to the BGEN sample file, which contains sample identifiers. Mandatory if format is bgen.

Simple samplesheet example

What's a simple samplesheet?

This example assumes your VCF/BGEN file contains multiple chromosomes and multiple samples.

A samplesheet can be set up in a spreadsheet program, using the following structure:

samplesetpathchromfile_formatgenotyping_methodbgen_sample_file
1000Gtests/data/bgen/PGS000586_GRCh38.bgenbgenarraytests/data/bgen/PGS000586_GRCh38.sample

Complex samplesheet example

What's a complex samplesheet?
  • This example assumes each VCF/BGEN file contains one chromosome and multiple samples
  • Each row corresponds to a different chromosome in the same sampleset
samplesetpathchromfile_formatgenotyping_method
1000Gtests/data/vcf/split/PGS000586_GRCh38_1.vcf.gz1vcfarray
1000Gtests/data/vcf/split/PGS000586_GRCh38_2.vcf.gz2vcfarray
1000Gtests/data/vcf/split/PGS000586_GRCh38_3.vcf.gz3vcfarray
1000Gtests/data/vcf/split/PGS000586_GRCh38_4.vcf.gz4vcfarray
1000Gtests/data/vcf/split/PGS000586_GRCh38_5.vcf.gz5vcfarray
1000Gtests/data/vcf/split/PGS000586_GRCh38_6.vcf.gz6vcfarray
1000Gtests/data/vcf/split/PGS000586_GRCh38_7.vcf.gz7vcfarray
1000Gtests/data/vcf/split/PGS000586_GRCh38_8.vcf.gz8vcfarray
1000Gtests/data/vcf/split/PGS000586_GRCh38_9.vcf.gz9vcfarray
1000Gtests/data/vcf/split/PGS000586_GRCh38_10.vcf.gz10vcfarray
1000Gtests/data/vcf/split/PGS000586_GRCh38_11.vcf.gz11vcfarray
1000Gtests/data/vcf/split/PGS000586_GRCh38_12.vcf.gz12vcfarray
1000Gtests/data/vcf/split/PGS000586_GRCh38_13.vcf.gz13vcfarray
1000Gtests/data/vcf/split/PGS000586_GRCh38_14.vcf.gz14vcfarray
1000Gtests/data/vcf/split/PGS000586_GRCh38_15.vcf.gz15vcfarray
1000Gtests/data/vcf/split/PGS000586_GRCh38_16.vcf.gz16vcfarray
1000Gtests/data/vcf/split/PGS000586_GRCh38_17.vcf.gz17vcfarray
1000Gtests/data/vcf/split/PGS000586_GRCh38_18.vcf.gz18vcfarray
1000Gtests/data/vcf/split/PGS000586_GRCh38_19.vcf.gz19vcfarray
1000Gtests/data/vcf/split/PGS000586_GRCh38_20.vcf.gz20vcfarray
1000Gtests/data/vcf/split/PGS000586_GRCh38_21.vcf.gz21vcfarray
1000Gtests/data/vcf/split/PGS000586_GRCh38_22.vcf.gz22vcfarray