Skip to main content

Upload troubleshooting

When you pick a VCF file on the New Case page, GeneBe reads its header in your browser before anything is uploaded. This page explains each message you may see and how to fix the file. For the general upload rules see Uploading samples.

The commands below use bcftools and tabix, standard tools available from most package managers (e.g. conda install -c bioconda bcftools).

"This file doesn't look like a VCF"​

A VCF file is a text file (optionally gzip/BGZF-compressed) that starts with a line like ##fileformat=VCFv4.2 and has a header line beginning with #CHROM. Common causes:

  • The file is a different format with a .vcf name, e.g. an Excel export, a CSV/TSV table, a gVCF from a tool that writes its own format, or a BAM/CRAM file.
  • The file was compressed with something other than gzip (.zip, .bz2, .xz, .7z), or the download was cut off and the compressed data is incomplete.
  • The first line was removed or edited by hand.

How to check:

# for .vcf.gz
zcat sample.vcf.gz | head -n 5
# for plain .vcf
head -n 5 sample.vcf

The first line must start with ##fileformat=VCF. If zcat fails, the file is not gzip-compressed or is damaged; download or export it again. To recompress a plain VCF the recommended way:

bgzip sample.vcf # produces sample.vcf.gz

"This VCF has no sample column (sites-only)"​

Each VCF lists its samples as extra columns after FORMAT in the #CHROM line. A sites-only VCF stops after INFO (or FORMAT): it describes variant positions but not whose variants they are or their genotypes. Such files are typical for population databases, annotation outputs, or exports that dropped genotypes.

GeneBe Sample Analysis needs the genotype of one person, so upload the VCF produced for that sample by your variant caller (for example the output of GATK HaplotypeCaller, DeepVariant, or your sequencing provider's *.vcf.gz for the sample).

Check what samples the file contains:

bcftools query -l sample.vcf.gz # prints one sample name per line; nothing = sites-only
tip

Just want to annotate a list of variants without a sample? Use VCF file annotation instead of Sample Analysis.

"This VCF contains N samples" (multi-sample VCF)​

GeneBe currently creates one case per sample, so the uploaded VCF must contain exactly one sample column. Multi-sample VCFs (family or cohort joint calls) need to be split first.

List the samples, then extract the one you want:

bcftools query -l family.vcf.gz
bcftools view -s PROBAND_01 -c1 -Oz -o PROBAND_01.vcf.gz family.vcf.gz

-c1 keeps only sites where this sample carries at least one alternate allele, which drops the positions that were variant only in the other family members. To split every sample into its own file at once:

mkdir split
bcftools +split family.vcf.gz -Oz -o split/

Then upload each file as a separate case.

"The first variant line is malformed"​

The header was fine, but the first data line does not have the expected layout: 8 fixed columns (CHROM POS ID REF ALT QUAL FILTER INFO), then FORMAT and one column per sample, all separated by tabs. Usual causes are spaces instead of tabs (after editing in a text editor or spreadsheet), a missing column, or a non-numeric POS. Validate the file with:

bcftools view sample.vcf.gz > /dev/null

bcftools reports the first offending line. Regenerate the file from the original pipeline rather than fixing it by hand when possible.

"The file contains no variant records"​

The header is valid but there are no variant lines. You can still create the case, but there will be nothing to analyse. Check that the right file was exported (not, for example, a filtered file where every variant was removed).

Genome build and liftover​

Genomic positions only make sense relative to a reference genome build. The two common human builds are GRCh38 (hg38) and the older GRCh37 (hg19); the same variant has different coordinates in each. See Genome versions explained for the background.

GeneBe recognises the build from the VCF header:

  • the length of chromosome 1 in a ##contig line (248956422 = GRCh38, 249250621 = GRCh37), or
  • an assembly name in ##reference, ##assembly or the assembly= attribute of ##contig lines (e.g. GRCh38, hg19, b37).

If none of these are present, the upload page asks you to choose. When unsure, check your pipeline's configuration or ask whoever produced the file; most current pipelines use GRCh38, which is the default. You can inspect the header yourself:

bcftools view -h sample.vcf.gz | grep -E '^##(contig=<ID=(chr)?1,|reference|assembly)'

Liftover means converting coordinates from one build to another. GeneBe annotates against GRCh38, so a GRCh37 (hg19) VCF is lifted over to GRCh38 before annotation. A small fraction of variants may not map (regions that changed between builds). If you have a GRCh38 version of the same data, prefer uploading it. You can try liftover for individual positions with the Lift Over tool.

warning

Choosing the wrong build does not fail loudly: positions are interpreted against the wrong reference and the annotations will be wrong. Double-check the build when GeneBe cannot detect it.

Files imported from Google Drive​

Files imported from Google Drive are copied directly from Drive to GeneBe and never pass through your browser, so the checks above cannot run before upload. Make sure the file is a single-sample VCF and select the correct genome build manually. Problems with the file are then reported after the import, on the sample's page.