Mercurial > repos > greg > genotype_population_info
changeset 4:5923e3420a04 draft
Uploaded
author | greg |
---|---|
date | Fri, 09 Nov 2018 14:12:40 -0500 |
parents | 535bb27f798f |
children | 47edf67ae650 |
files | genotype_population_info.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/genotype_population_info.py Fri Nov 09 14:11:39 2018 -0500 +++ b/genotype_population_info.py Fri Nov 09 14:12:40 2018 -0500 @@ -10,7 +10,7 @@ parser.add_argument('--input_csv', dest='input_csv', help='Affymetrix 96 well plate file') parser.add_argument('--input_vcf', dest='input_vcf', help='Input VCF file') parser.add_argument('--output', dest='output', help='Output dataset'), -self.args = parser.parse_args() +args = parser.parse_args() # Parse the input_vcf file, looking for the first line # that starts with the string "#CHROM" @@ -46,6 +46,6 @@ # The output file will consist of columns: # Item #, Sample ID, Region -with open(self.args.output, "w") as outfh: +with open(args.output, "w") as outfh: for i, sample_id in sample_list: outfh.write("%d\t%s\t%s\n" % (i, sample_id, region_list[1]))