Published July 18, 2024 | Version v1

Instructions on how to run PanGenie on HGSVC3 + HPRC data

Authors/Creators

Description

Input Data

Reference genome

The reference genome used (CHM13) can be obtained from: https://s3-us-west-2.amazonaws.com/human-pangenomics/T2T/CHM13/assemblies/analysis_set/chm13v2.0.fa.gz

Reads

We used the raw 1kg Illumina reads (FASTA/FASTQ) obtained from: http://ftp.sra.ebi.ac.uk/vol1/fastq/.
We created a single FASTQ file per sample by concatenating individual files, however, PanGenie can also be run with multiple files per sample (see instructions below on how this is done).

Input panel VCF

The input VCF was derived from Minigraph-Cactus VCFs produced from 65 HGSVC3 and 42 HPRC assemblies. It is available here in this repository:  MC_hgsvc3-hprc_chm13_filtered_bubbles.vcf.gz
There is an additional VCF containing decomposed variant alleles, which will be needed to postprocess the PanGenie output (in order to translate bubble genotypes to genotypes for all nested variants). This VCF is also available in this repository and is called: MC_hgsvc3-hprc_chm13_filtered_decomposed.vcf.gz

Running PanGenie

We used PanGenie version v3.1.0 and ran it via singularity as described in the README (https://github.com/eblerjana/pangenie/tree/master). The singularity image used is available in this repository: eblerjana_eblerjana_pangenie-v3.1.0.sif

Commands used for genotyping

(1) Indexing (run only once):

  PanGenie-index -v MC_hgsvc3-hprc_chm13_filtered_bubbles.vcf -r chm13v2.0.fa -o index -t 24

  • Note: the input panel VCF (-v) as well as the reference genome (-r) need to be uncompressed.

(2) Genotyping (run for each sample):

 PanGenie -a 108 -f index -i <(zcat <sample>.R1.fq.gz <sample>.R2.fq.gz)  -o pangenie_<sample> -j 24 -t 24 -s <sample>

  • -j and -t specify the number of threads to be used for internal k-mer counting and genotyping steps (here 24 cores are used for both).
  • The -i parameter is used to provide input reads (in FASTA/FASTQ format). If you have more than one file per sample (e.g. for paired-end reads) use the syntax shown in the command above to avoid having to concatenate the files beforehand.


(3) Decompose bubbles (run for each sample)

cat pangenie_<sample>_genotyping.vcf | python3 convert-to-biallelic.py MC_hgsvc3-hprc_chm13_filtered_decomposed.vcf > pangenie_<sample>_genotyping_biallelic.vcf

  • Note: the convert-to-biallelic.py script is provided in this repository.

Files

README-data.md

Files (5.2 GB)

Name Size
md5:36269627fde2ee2cda14f58aee655875
3.7 kB Download
md5:f2a46f965cb139545341814f4b3fd786
78.4 MB Download
md5:7f8868f05c76d64d9690efb5be319ae8
3.1 GB Download
md5:34809b97fec40e35bda2fc1883cac579
2.2 MB Download
md5:30595c8c07f89016caf204f2f773ff1d
2.1 GB Download
md5:aa2e180e3f5967204164be52fdd211aa
2.3 MB Download
md5:6afeacc67cc60b047456a2e0fa2e8b07
3.0 kB Preview Download
md5:f32ca31dc25afa7f745a17ed0988821f
2.4 kB Preview Download