Skip to content

Commit

Permalink
match df columns to varcode field names
Browse files Browse the repository at this point in the history
  • Loading branch information
arahuja committed May 25, 2016
1 parent 922901d commit 1421b59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions varcode/effect_collection.py
Expand Up @@ -268,8 +268,8 @@ def to_dataframe(self):
"""Build a dataframe from the effect collection"""
def row_from_effect(effect):
row = {}
row['chr'] = effect.variant.contig
row['position'] = effect.variant.start
row['contig'] = effect.variant.contig
row['start'] = effect.variant.start
row['ref'] = effect.variant.ref
row['alt'] = effect.variant.alt
row['gene_id'] = effect.gene_id
Expand Down

0 comments on commit 1421b59

Please sign in to comment.