From bc05a2aeee339a1e5553bfedba1e89fec77e9dec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A9borah=20Servili?= Date: Mon, 30 Jan 2017 14:53:08 +0100 Subject: [PATCH] improve csv_to_galaxy 2 --- tools/csv_to_galaxy.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/csv_to_galaxy.py b/tools/csv_to_galaxy.py index 5d9c194..6c43df4 100644 --- a/tools/csv_to_galaxy.py +++ b/tools/csv_to_galaxy.py @@ -36,7 +36,8 @@ if __name__ == '__main__': temp["description"] = "" if args.value_description is not None: for i in args.value_description: - temp["description"] = temp["description"] + data[i].replace('\n', ' ') + "; " + if data[i] != "": + temp["description"] = temp["description"] + data[i].replace('\n', ' ') + "; " else: for i in range(len(data)): if i != args.value and data[i] != "":