.\" Man page generated from reStructuredText. . .TH PBGFF 5 "August 2014" "2.1" "Bioinformatics formats" .SH NAME pbgff \- Pacific Biosciences extended GFFv3 file format . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .SH DESCRIPTION .sp As of this version, \fBvariants.gff\fP is our primary variant call file format. The \fBvariants.gff\fP file is based on the \fI\%GFFv3 standard\fP\&. The GFFv3 standard describes a tab\-delimited plain\-text file meta\-format for describing genomic "features." Each gff file consists of some initial "header" lines supplying metadata, and then a number of "feature" lines providing information about each identified variant. .SS The GFF Coordinate System .sp All coordinates in GFF files are 1\-based, and all intervals \fBstart, end\fP are understood as including both endpoints. .SS Headers .sp The \fBvariants.gff\fP file begins with a block of metadata headers, which looks like the following: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ##gff\-version 3 ##pacbio\-variant\-version 2.1 ##date Tue Feb 28 17:44:18 2012 ##feature\-ontology http://song.cvs.sourceforge.net/*checkout*/song/ontology/sofa.obo?revision=1.12 ##source GenomicConsensus v0.1.0 ##source\-commandline callVariants.py \-\-algorithm=plurality aligned_reads.cmp.h5 \-r spinach.fasta \-o variants.gff ##source\-alignment\-file /home/popeye/data/aligned_reads.cmp.h5 ##source\-reference\-file /home/popeye/data/spinach.fasta ##sequence\-region EGFR_Exon_23 1 189 ##sequence\-header EGFR_Exon_24 1 200 .ft P .fi .UNINDENT .UNINDENT .sp The \fBsource\fP and \fBsource\-commandline\fP describe the name and version of the software generating the file. \fBpacbio\-variant\-version\fP reflects the specification version that the file contents should adhere to. .sp The \fBsequence\-region\fP headers describe the names and extents of the reference groups (i.e. reference contigs) that will be refered to in the file. The names are the same as the full FASTA header. .sp \fBsource\-alignment\-file\fP and \fBsource\-reference\-file\fP record absolute paths to the primary input files. .SS Feature lines .sp After the headers, each line in the file describes a genomic \fIfeature\fP; in this file, all the features are potential variants flagged by the variant caller. The general format of a variant line is a 9\-column (tab\-delimited) record, where the first 8 columns correspond to fixed, predefined entities in the GFF standard, while the 9th column is a flexible semicolon\-delimited list of mappings \fBkey=value\fP\&. .sp The 8 predefined columns are as follows: .TS center; |l|l|l|l|. _ T{ Column Number T} T{ Name T} T{ Description T} T{ Example T} _ T{ 1 T} T{ seqId T} T{ The full FASTA header for the reference contig. T} T{ \fBlambda_NEB3011\fP T} _ T{ 2 T} T{ source T} T{ (unused; always populated with \fB\&.\fP) T} T{ \fB\&.\fP T} _ T{ 3 T} T{ type T} T{ the type of variant. One of \fBinsertion\fP, \fBdeletion\fP, or \fBsubstitution\fP\&. T} T{ \fBsubstitution\fP T} _ T{ 4 T} T{ start T} T{ 1\-based start coordinate for the variant. T} T{ 200 T} _ T{ 5 T} T{ end T} T{ 1\-based end coordinate for the variant. start<=end always obtains, regardless of strand. T} T{ 215 T} _ T{ 6 T} T{ score T} T{ unused; populated with \fB\&.\fP T} T{ \fB\&.\fP T} _ T{ 7 T} T{ strand T} T{ unused; populated with \fB\&.\fP T} T{ \fB\&.\fP T} _ T{ 8 T} T{ phase T} T{ unused; populated with \fB\&.\fP T} T{ \fB\&.\fP T} _ .TE .sp The attributes in the 9th (final) column are as follows: .TS center; |l|l|l|. _ T{ Key T} T{ Description T} T{ Example value T} _ T{ \fBcoverage\fP T} T{ the read coverage of the variant site (not the variant itself) T} T{ \fB42\fP T} _ T{ \fBconfidence\fP T} T{ the phred\-scaled probability that the variant is real, rounded to the nearest integer and truncated at 93 T} T{ \fB37\fP T} _ T{ \fBreference\fP T} T{ the reference base or bases for the variant site. May be \fB\&.\fP to represent a zero\-length substring (for insertion events) T} T{ \fBT\fP, \fB\&.\fP T} _ T{ \fBvariantSeq\fP T} T{ the read base or bases corresponding to the variant. \fB\&.\fP encodes a zer\-length string, as for a deletion. T} T{ .INDENT 0.0 .TP .B \fBT\fP (haploid); .TP .B \fBT/C\fP, \fBT/.\fP (heterozygous) .UNINDENT T} _ T{ \fBfrequency\fP T} T{ the read coverage of the variant itself; for heterozygous variants, the frequency of both observed alleles. This is an optional field. T} T{ .INDENT 0.0 .TP .B \fB13\fP (haploid) .TP .B \fB15/12\fP (heterozygous) .UNINDENT T} _ .TE .sp The attributes may be present in any order. .sp The four types of variant we support are as follows. \fI(Recall that the field separator is a tab, not a space.)\fP .INDENT 0.0 .IP 1. 3 Insertion. Examples: .INDENT 3.0 .INDENT 3.5 .sp .nf .ft C ref00001 . insertion 8 8 . . . reference=.;variantSeq=G;confidence=22;coverage=18;frequency=10 ref00001 . insertion 19 19 . . . reference=.;variantSeq=G/.;confidence=22;coverage=18;frequency=7/5 .ft P .fi .UNINDENT .UNINDENT .UNINDENT .INDENT 0.0 .INDENT 3.5 For insertions, start==end, and the insertion event is understood as taking place \fIfollowing\fP the reference position \fIstart\fP\&. .UNINDENT .UNINDENT .INDENT 0.0 .IP 2. 3 Deletion. Examples: .INDENT 3.0 .INDENT 3.5 .sp .nf .ft C ref00001 . deletion 348 349 . . . reference=G;variantSeq=.;confidence=39;coverage=25;frequency=20 ref00001 . deletion 441 443 . . . reference=GG;variantSeq=GG/.;confidence=39;coverage=25;frequency=8/8 .ft P .fi .UNINDENT .UNINDENT .IP 3. 3 Substitution. Examples: .INDENT 3.0 .INDENT 3.5 .sp .nf .ft C ref000001 . substitution 100 102 . . . reference=GGG;variantSeq=CCC;confidence=50;coverage=20;frequency=16 ref000001 . substitution 200 201 . . . reference=G;variantSeq=G/C;confidence=50;coverage=20;frequency=10/6 .ft P .fi .UNINDENT .UNINDENT .UNINDENT .SS Compression .sp The gff metaformat is verbose, so for practical purposes we will gzip encode \fBvariants.gff\fP files as \fBvariants.gff.gz\fP\&. Consumers of the variant file should be able to read it in either form. .SH SEE ALSO .sp The VCF and BED standards describe variant\-call specific file formats. We can currently translate \fIvariants.gff\fP files to these formats, but they are not the primary output of the variant callers. .SH AUTHOR Pacific Biosciences .\" Generated by docutils manpage writer. .