Closed davemcg closed 7 years ago
Is there a column called "Codons"?
No
gemini query -q 'select chrom, start, end, codon_change, Codons, aa_change from variants WHERE is_exonic=1' CCGO.2016-12-12.db --header | head -n 10 | csvlook -t
SQL error: (sqlite3.OperationalError) no such column: Codons [SQL: u'select chrom, start, end, codon_change, Codons, aa_change from variants WHERE is_exonic=1']
Traceback (most recent call last):
File "/usr/local/bin/gemini", line 6, in <module>
gemini.gemini_main.main()
File "/usr/local/share/gemini/anaconda/lib/python2.7/site-packages/gemini/gemini_main.py", line 1227, in main
args.func(parser, args)
File "/usr/local/share/gemini/anaconda/lib/python2.7/site-packages/gemini/gemini_main.py", line 422, in query_fn
gemini_query.query(parser, args)
File "/usr/local/share/gemini/anaconda/lib/python2.7/site-packages/gemini/gemini_query.py", line 167, in query
run_query(args)
File "/usr/local/share/gemini/anaconda/lib/python2.7/site-packages/gemini/gemini_query.py", line 133, in run_query
gene_needed, args.show_families, subjects=subjects)
File "/usr/local/share/gemini/anaconda/lib/python2.7/site-packages/gemini/GeminiQuery.py", line 638, in run
self.result_proxy = res = iter(self._apply_query())
File "/usr/local/share/gemini/anaconda/lib/python2.7/site-packages/gemini/GeminiQuery.py", line 908, in _apply_query
res = self._execute_query()
File "/usr/local/share/gemini/anaconda/lib/python2.7/site-packages/gemini/GeminiQuery.py", line 867, in _execute_query
raise ValueError("The query issued (%s) has a syntax error." % self.query)
ValueError: The query issued (select chrom, start, end, codon_change, Codons, aa_change from variants WHERE is_exonic=1) has a syntax error.
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| SQL error: (sqlite3.OperationalError) no such column: Codons [SQL: u'select chrom, start, end, codon_change, Codons, aa_change from variants WHERE is_exonic=1'] |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
$ gemini db_info CCGO.2016-12-12.db
table_name column_name type
variants variant_id INTEGER
variants chrom VARCHAR(10)
variants start INTEGER
variants end INTEGER
variants vcf_id VARCHAR(12)
variants ref TEXT
variants alt TEXT
variants qual FLOAT
variants filter VARCHAR(35)
variants type VARCHAR(8)
variants sub_type VARCHAR(20)
variants call_rate FLOAT
variants num_hom_ref INTEGER
variants num_het INTEGER
variants num_hom_alt INTEGER
variants aaf FLOAT
variants hwe FLOAT
variants inbreeding_coef FLOAT
variants pi FLOAT
variants gene VARCHAR(20)
variants transcript VARCHAR(20)
variants is_exonic BOOLEAN
variants is_coding BOOLEAN
variants is_lof BOOLEAN
variants is_splicing BOOLEAN
variants exon VARCHAR(8)
variants codon_change TEXT
variants aa_change TEXT
variants aa_length VARCHAR(14)
variants biotype TEXT
variants impact VARCHAR(41)
variants impact_so VARCHAR(41)
variants impact_severity VARCHAR(4)
variants polyphen_pred VARCHAR(20)
variants polyphen_score FLOAT
variants sift_pred VARCHAR(31)
variants sift_score FLOAT
variants an INTEGER
variants baseqranksum FLOAT
variants clinvar_diseases TEXT
variants clippingranksum FLOAT
variants dp INTEGER
variants ds BOOLEAN
variants exome_chip BOOLEAN
variants excesshet FLOAT
variants fs FLOAT
variants gene_eyediseaseclass TEXT
variants hgmd_overlap TEXT
variants haplotypescore FLOAT
variants inbreedingcoeff FLOAT
variants mq FLOAT
variants mqranksum FLOAT
variants old_multiallelic TEXT
variants old_variant TEXT
variants qd FLOAT
variants raw_mq FLOAT
variants readposranksum FLOAT
variants sor FLOAT
variants aaf_1kg_afr_float FLOAT
variants aaf_1kg_all_float FLOAT
variants aaf_1kg_amr_float FLOAT
variants aaf_1kg_eas_float FLOAT
variants aaf_1kg_eur_float FLOAT
variants aaf_1kg_sas_float FLOAT
variants aaf_esp_aa FLOAT
variants aaf_esp_all FLOAT
variants aaf_esp_ea FLOAT
variants adj_exp_lof TEXT
variants adj_exp_mis TEXT
variants adj_exp_syn TEXT
variants af_exac_afr FLOAT
variants af_exac_all FLOAT
variants af_exac_amr FLOAT
variants af_exac_eas FLOAT
variants af_exac_nfe FLOAT
variants af_exac_oth FLOAT
variants af_exac_sas FLOAT
variants an_exac_afr FLOAT
variants an_exac_all FLOAT
variants an_exac_amr FLOAT
variants an_exac_eas FLOAT
variants an_exac_fin FLOAT
variants an_exac_nfe FLOAT
variants an_exac_oth FLOAT
variants an_exac_sas FLOAT
variants clinvar_pathogenic TEXT
variants clinvar_sig VARCHAR(5)
variants common_pathogenic TEXT
variants cosmic_ids TEXT
variants cpg_island BOOLEAN
variants cse_hiseq BOOLEAN
variants dgv TEXT
variants encode_consensus_gm12878 TEXT
variants encode_consensus_h1hesc VARCHAR(5)
variants encode_consensus_helas3 TEXT
variants encode_consensus_hepg2 TEXT
variants encode_consensus_huvec TEXT
variants encode_consensus_k562 VARCHAR(5)
variants exac_num_het FLOAT
variants exac_num_hom_alt FLOAT
variants fitcons_float FLOAT
variants geno2mp BOOLEAN
variants gerp_elements FLOAT
variants gwas_pubmed_trait TEXT
variants hapmap1 FLOAT
variants hapmap2 FLOAT
variants in_1kg BOOLEAN
variants in_esp BOOLEAN
variants in_exac BOOLEAN
variants lof_z VARCHAR(5)
variants max_aaf_all FLOAT
variants mis_z TEXT
variants n_lof TEXT
variants n_mis VARCHAR(5)
variants n_syn TEXT
variants pli TEXT
variants pnull TEXT
variants precessive TEXT
variants pfam_domain TEXT
variants rmsk TEXT
variants rs_ids TEXT
variants set VARCHAR(5)
variants stam_mean FLOAT
variants stam_names TEXT
variants syn_z VARCHAR(5)
variants tfbs TEXT
variants canonical VARCHAR(10)
variants domains TEXT
variants clin_sig TEXT
variants grantham VARCHAR(10)
variants maxentscan VARCHAR(10)
variants hgvsc TEXT
variants hgvsp VARCHAR(40)
variants pubmed TEXT
variants phenotypes VARCHAR(10)
variants cadd_raw VARCHAR(10)
variants cadd_phred VARCHAR(10)
variants gts BLOB
variants gt_types BLOB
variants gt_phases BLOB
variants gt_depths BLOB
variants gt_ref_depths BLOB
variants gt_alt_depths BLOB
variants gt_quals BLOB
variant_impacts variant_id INTEGER
variant_impacts gene VARCHAR(20)
variant_impacts transcript VARCHAR(20)
variant_impacts is_exonic BOOLEAN
variant_impacts is_coding BOOLEAN
variant_impacts is_lof BOOLEAN
variant_impacts is_splicing BOOLEAN
variant_impacts exon VARCHAR(8)
variant_impacts codon_change TEXT
variant_impacts aa_change TEXT
variant_impacts aa_length VARCHAR(14)
variant_impacts biotype TEXT
variant_impacts impact VARCHAR(20)
variant_impacts impact_so VARCHAR(41)
variant_impacts impact_severity VARCHAR(4)
variant_impacts polyphen_pred VARCHAR(20)
variant_impacts polyphen_score FLOAT
variant_impacts sift_pred VARCHAR(31)
variant_impacts sift_score FLOAT
variant_impacts canonical VARCHAR(10)
variant_impacts domains TEXT
variant_impacts clin_sig TEXT
variant_impacts grantham VARCHAR(10)
variant_impacts maxentscan VARCHAR(10)
variant_impacts hgvsc TEXT
variant_impacts hgvsp VARCHAR(40)
variant_impacts pubmed TEXT
variant_impacts phenotypes VARCHAR(10)
variant_impacts cadd_raw VARCHAR(10)
variant_impacts cadd_phred VARCHAR(10)
samples sample_id INTEGER
samples family_id VARCHAR(20)
samples name VARCHAR(11)
samples paternal_id VARCHAR(20)
samples maternal_id VARCHAR(20)
samples sex VARCHAR(1)
samples phenotype VARCHAR(2)
Thanks for reporting. I just pushed a fix for this to the geneimpacts module.
Thanks all
Using the latest vcf2db
Codon field (codon_change) is blank. I'm using VEP to annotate consequences.
VEP's CSQ line in my VCF has Codon change:
1:69269-69270 line does have codon info in the vcf