Carlos-Francisco Méndez-Cruz

Deep Learning Workshop

...@@ -80,7 +80,7 @@ if __name__ == "__main__": ...@@ -80,7 +80,7 @@ if __name__ == "__main__":
80 total_exon = 0 80 total_exon = 0
81 total_utr = 0 81 total_utr = 0
82 # Read HGA csv file 82 # Read HGA csv file
83 - with open(os.path.join(args.hgaPath, args.hgaFile), mode="r", encoding="utf-8") as csvfile: 83 + with open(os.path.join(args.hgaPath, args.hgaFile), mode="r") as csvfile:
84 reader = csv.DictReader(csvfile) 84 reader = csv.DictReader(csvfile)
85 for row in reader: 85 for row in reader:
86 # print(row) 86 # print(row)
......
...@@ -55,7 +55,7 @@ if __name__ == "__main__": ...@@ -55,7 +55,7 @@ if __name__ == "__main__":
55 sequences = [] 55 sequences = []
56 56
57 # Read file with sequences 57 # Read file with sequences
58 - with open(os.path.join(args.inputPath, args.inputFile), mode="r", encoding="utf-8") as tabfile: 58 + with open(os.path.join(args.inputPath, args.inputFile), mode="r") as tabfile:
59 df = pd.read_csv(tabfile, delimiter='\t') 59 df = pd.read_csv(tabfile, delimiter='\t')
60 print("df: {}".format(df)) 60 print("df: {}".format(df))
61 sequences = df['sequence'] 61 sequences = df['sequence']
......