# HG changeset patch # User greg # Date 1541790760 18000 # Node ID 5923e3420a048ebb249ed8e9487121914141fa36 # Parent 535bb27f798f684d51d8a5cb1e2abc80604dc510 Uploaded diff -r 535bb27f798f -r 5923e3420a04 genotype_population_info.py --- 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]))