Skip to content

Commit 82f2959

Browse files
committed
add new attribute, 'gene_symbol', from 'gene' in the JSON file
1 parent e18dfa9 commit 82f2959

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

bin/functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import logging
44

55
# standard variables used by all scripts
6-
empty_attributes = 'ID=;Name=;alias=;gene=;protein_name=;protein_symbol=;\
6+
empty_attributes = 'ID=;Name=;alias=;gene=;gene_symbol=;protein_name=;protein_symbol=;\
77
protein_id=;alias_protein_id=;transcript_id=;ps_filter=;ps_exc=; \
88
mat_pep=;mat_pep_desc=;mat_pep_acc=;ro=;ao=;dp=;sample_size=; \
99
Reference_seq=;Variant_seq=;nt_name=;aa_name=;hgvs_nt=;hgvs_aa=;hgvs_alias=; \

bin/vcf2gvf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ def vcftogvf(vcf, strain, GENE_PROTEIN_POSITIONS_DICT, sample_size):
8484
json_df = map_pos_to_gene_protein(
8585
vcf_df['POS'].astype(int), GENE_PROTEIN_POSITIONS_DICT)
8686
new_gvf["gene"] = json_df["gene"]
87+
new_gvf["gene_symbol"] = json_df["gene"]
8788
new_gvf["protein_name"] = json_df["protein_name"]
8889
new_gvf["protein_symbol"] = json_df["protein_symbol"]
8990
new_gvf["protein_id"] = json_df["protein_id"]

0 commit comments

Comments
 (0)