{"action":"opened","issue":{"url":"https://api.github.com/repos/jamescasbon/PyVCF/issues/194","labels_url":"https://api.github.com/repos/jamescasbon/PyVCF/issues/194/labels{/name}","comments_url":"https://api.github.com/repos/jamescasbon/PyVCF/issues/194/comments","events_url":"https://api.github.com/repos/jamescasbon/PyVCF/issues/194/events","html_url":"https://github.com/jamescasbon/PyVCF/issues/194","id":60391404,"number":194,"title":"Syntax Error loading a vcf made by freebayes","user":{"login":"mvollger","id":6935283,"avatar_url":"https://avatars.githubusercontent.com/u/6935283?v=3","gravatar_id":"","url":"https://api.github.com/users/mvollger","html_url":"https://github.com/mvollger","followers_url":"https://api.github.com/users/mvollger/followers","following_url":"https://api.github.com/users/mvollger/following{/other_user}","gists_url":"https://api.github.com/users/mvollger/gists{/gist_id}","starred_url":"https://api.github.com/users/mvollger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvollger/subscriptions","organizations_url":"https://api.github.com/users/mvollger/orgs","repos_url":"https://api.github.com/users/mvollger/repos","events_url":"https://api.github.com/users/mvollger/events{/privacy}","received_events_url":"https://api.github.com/users/mvollger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-09T18:50:53Z","updated_at":"2015-03-09T18:50:53Z","closed_at":null,"body":"Hi, I am getting an error when trying to reading in my vcf file. I am new to pyvcf so I am not really sure what the issue is. Below is the header, error, and code I used. Thanks in advance. \r\n\r\n\r\nHeader:\r\n##fileformat=VCFv4.1\r\n##fileDate=20150309\r\n##source=freeBayes v0.9.20-16-g3e35e72\r\n##reference=joinedgenome.fasta\r\n##phasing=none\r\n##commandline=\"freebayes -f joinedgenome.fasta genome_sorted.bam --region chrI:0-230218\"\r\n##INFO=<ID=NS,Number=1,Type=Integer,Description=\"Number of samples with data\">\r\n##INFO=<ID=DP,Number=1,Type=Integer,Description=\"Total read depth at the locus\">\r\n##INFO=<ID=DPB,Number=1,Type=Float,Description=\"Total read depth per bp at the locus; bases in reads overlapping / bases in haplotype\">\r\n##INFO=<ID=AC,Number=A,Type=Integer,Description=\"Total number of alternate alleles in called genotypes\">\r\n##INFO=<ID=AN,Number=1,Type=Integer,Description=\"Total number of alleles in called genotypes\">\r\n##INFO=<ID=AF,Number=A,Type=Float,Description=\"Estimated allele frequency in the range (0,1]\">\r\n##INFO=<ID=RO,Number=1,Type=Integer,Description=\"Reference allele observation count, with partial observations recorded fractionally\">\r\n##INFO=<ID=AO,Number=A,Type=Integer,Description=\"Alternate allele observations, with partial observations recorded fractionally\">\r\n##INFO=<ID=PRO,Number=1,Type=Float,Description=\"Reference allele observation count, with partial observations recorded fractionally\">\r\n##INFO=<ID=PAO,Number=A,Type=Float,Description=\"Alternate allele observations, with partial observations recorded fractionally\">\r\n##INFO=<ID=QR,Number=1,Type=Integer,Description=\"Reference allele quality sum in phred\">\r\n##INFO=<ID=QA,Number=A,Type=Integer,Description=\"Alternate allele quality sum in phred\">\r\n##INFO=<ID=PQR,Number=1,Type=Float,Description=\"Reference allele quality sum in phred for partial observations\">\r\n##INFO=<ID=PQA,Number=A,Type=Float,Description=\"Alternate allele quality sum in phred for partial observations\">\r\n##INFO=<ID=SRF,Number=1,Type=Integer,Description=\"Number of reference observations on the forward strand\">\r\n##INFO=<ID=SRR,Number=1,Type=Integer,Description=\"Number of reference observations on the reverse strand\">\r\n##INFO=<ID=SAF,Number=A,Type=Integer,Description=\"Number of alternate observations on the forward strand\">\r\n##INFO=<ID=SAR,Number=A,Type=Integer,Description=\"Number of alternate observations on the reverse strand\">\r\n##INFO=<ID=SRP,Number=1,Type=Float,Description=\"Strand balance probability for the reference allele: Phred-scaled upper-bounds estimate of the probability of observing the deviation between SRF and SRR given E(SRF/SRR) ~ 0.5, derived using Hoeffding's inequality\">\r\n##INFO=<ID=SAP,Number=A,Type=Float,Description=\"Strand balance probability for the alternate allele: Phred-scaled upper-bounds estimate of the probability of observing the deviation between SAF and SAR given E(SAF/SAR) ~ 0.5, derived using Hoeffding's inequality\">\r\n##INFO=<ID=AB,Number=A,Type=Float,Description=\"Allele balance at heterozygous sites: a number between 0 and 1 representing the ratio of reads showing the reference allele to all reads, considering only reads from individuals called as heterozygous\">\r\n##INFO=<ID=ABP,Number=A,Type=Float,Description=\"Allele balance probability at heterozygous sites: Phred-scaled upper-bounds estimate of the probability of observing the deviation between ABR and ABA given E(ABR/ABA) ~ 0.5, derived using Hoeffding's inequality\">\r\n##INFO=<ID=RUN,Number=A,Type=Integer,Description=\"Run length: the number of consecutive repeats of the alternate allele in the reference genome\">\r\n##INFO=<ID=RPP,Number=A,Type=Float,Description=\"Read Placement Probability: Phred-scaled upper-bounds estimate of the probability of observing the deviation between RPL and RPR given E(RPL/RPR) ~ 0.5, derived using Hoeffding's inequality\">\r\n##INFO=<ID=RPPR,Number=1,Type=Float,Description=\"Read Placement Probability for reference observations: Phred-scaled upper-bounds estimate of the probability of observing the deviation between RPL and RPR given E(RPL/RPR) ~ 0.5, derived using Hoeffding's inequality\">\r\n##INFO=<ID=RPL,Number=A,Type=Float,Description=\"Reads Placed Left: number of reads supporting the alternate balanced to the left (5') of the alternate allele\">\r\n##INFO=<ID=RPR,Number=A,Type=Float,Description=\"Reads Placed Right: number of reads supporting the alternate balanced to the right (3') of the alternate allele\">\r\n##INFO=<ID=EPP,Number=A,Type=Float,Description=\"End Placement Probability: Phred-scaled upper-bounds estimate of the probability of observing the deviation between EL and ER given E(EL/ER) ~ 0.5, derived using Hoeffding's inequality\">\r\n##INFO=<ID=EPPR,Number=1,Type=Float,Description=\"End Placement Probability for reference observations: Phred-scaled upper-bounds estimate of the probability of observing the deviation between EL and ER given E(EL/ER) ~ 0.5, derived using Hoeffding's inequality\">\r\n##INFO=<ID=DPRA,Number=A,Type=Float,Description=\"Alternate allele depth ratio.  Ratio between depth in samples with each called alternate allele and those without.\">\r\n##INFO=<ID=ODDS,Number=1,Type=Float,Description=\"The log odds ratio of the best genotype combination to the second-best.\">\r\n##INFO=<ID=GTI,Number=1,Type=Integer,Description=\"Number of genotyping iterations required to reach convergence or bailout.\">\r\n##INFO=<ID=TYPE,Number=A,Type=String,Description=\"The type of allele, either snp, mnp, ins, del, or complex.\">\r\n##INFO=<ID=CIGAR,Number=A,Type=String,Description=\"The extended CIGAR representation of each alternate allele, with the exception that '=' is replaced by 'M' to ease VCF parsing.  Note that INDEL alleles do not have the first matched base (which is provided by default, per the spec) referred to by the CIGAR.\">\r\n##INFO=<ID=NUMALT,Number=1,Type=Integer,Description=\"Number of unique non-reference alleles in called genotypes at this position.\">\r\n##INFO=<ID=MEANALT,Number=A,Type=Float,Description=\"Mean number of unique non-reference allele observations per sample with the corresponding alternate alleles.\">\r\n##INFO=<ID=LEN,Number=A,Type=Integer,Description=\"allele length\">\r\n##INFO=<ID=MQM,Number=A,Type=Float,Description=\"Mean mapping quality of observed alternate alleles\">\r\n##INFO=<ID=MQMR,Number=1,Type=Float,Description=\"Mean mapping quality of observed reference alleles\">\r\n##INFO=<ID=PAIRED,Number=A,Type=Float,Description=\"Proportion of observed alternate alleles which are supported by properly paired read fragments\">\r\n##INFO=<ID=PAIREDR,Number=1,Type=Float,Description=\"Proportion of observed reference alleles which are supported by properly paired read fragments\">\r\n##FORMAT=<ID=GT,Number=1,Type=String,Description=\"Genotype\">\r\n##FORMAT=<ID=GQ,Number=1,Type=Float,Description=\"Genotype Quality, the Phred-scaled marginal (or unconditional) probability of the called genotype\">\r\n##FORMAT=<ID=GL,Number=G,Type=Float,Description=\"Genotype Likelihood, log10-scaled likelihoods of the data given the called genotype for each possible genotype generated from the reference and alternate alleles given the sample ploidy\">\r\n##FORMAT=<ID=DP,Number=1,Type=Integer,Description=\"Read Depth\">\r\n##FORMAT=<ID=RO,Number=1,Type=Integer,Description=\"Reference allele observation count\">\r\n##FORMAT=<ID=QR,Number=1,Type=Integer,Description=\"Sum of quality of the reference observations\">\r\n##FORMAT=<ID=AO,Number=A,Type=Integer,Description=\"Alternate allele observation count\">\r\n##FORMAT=<ID=QA,Number=A,Type=Integer,Description=\"Sum of quality of the alternate observations\">\r\n#CHROM\tPOS\tID\tREF\tALT\tQUAL\tFILTER\tINFO\tFORMAT\tunknown\r\nchrI\t10\t.\tA\tG\t17.5498\t.\tAB=0;ABP=0;AC=0;AF=0;AN=2;AO=2;CIGAR=1X;DP=8;DPB=8;DPRA=0;EPP=7.35324;EPPR=11.6962;GTI=0;LEN=1;MEANALT=2;MQM=40;MQMR=41;NS=1;NUMALT=1;ODDS=0;PAIRED=0;PAIREDR=0;PAO=0;PQA=0;PQR=0;PRO=0;QA=4;QR=8;RO=4;RPL=0;RPP=7.35324;RPPR=11.6962;RPR=2;RUN=1;SAF=0;SAP=7.35324;SAR=2;SRF=0;SRP=11.6962;SRR=4;TYPE=snp\tGT:DP:RO:QR:AO:QA:GL\t0/0:8:4:8:2:4:0,-0.270089,-0.36\r\n\r\n\r\n\r\nError:\r\n\r\nFile \"var.vcf\", line 57\r\n    chrI\t10\t.\tA\tG\t17.5498\t. AB=0;ABP=0;AC=0;AF=0;AN=2;AO=2;CIGAR=1X;DP=8;DPB=8;DPRA=0;EPP=7.35324;EPPR=11.6962;GTI=0;LEN=1;MEANALT=2;MQM=40;MQMR=41;NS=1;NUMALT=1;ODDS=0;PAIRED=0;PAIREDR=0;PAO=0;PQA=0;PQR=0;PRO=0;QA=4;QR=8;RO=4;RPL=0;RPP=7.35324;RPPR=11.6962;RPR=2;RUN=1;SAF=0;SAP=7.35324;SAR=2;SRF=0;SRP=11.6962;SRR=4;TYPE=snp\tGT:DP:RO:QR:AO:QA:GL\t0/0:8:4:8:2:4:0,-0.270089,-0.36\r\n          ^\r\nSyntaxError: invalid syntax\r\n\r\n\r\n\r\nCode:\r\n\r\nimport vcf \r\nf = open(\"var.vcf\", \"r\")\r\ns288c_vcf = vcf.Reader(f)"}}