Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

use getattr

  • Loading branch information...
commit ae7f9d040b6641311c9d5343a601f89487a6a3de 1 parent f811332
James Casbon authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  scripts/vcf_melt
View
2  scripts/vcf_melt
@@ -39,7 +39,7 @@ for record in reader:
for sample in record.samples:
row = [sample.sample]
- row += [flatten(sample.data.__getattribute__(x)) for x in formats]
+ row += [flatten(getattr(sample.data, x)) for x in formats]
row += [record.FILTER or '.']
row += fixed
row += info_row
Please sign in to comment.
Something went wrong with that request. Please try again.