From 737c05b143ea46b657900a5998278d77db7264cf Mon Sep 17 00:00:00 2001 From: s-andrews Date: Fri, 6 Oct 2023 10:01:20 +0100 Subject: [PATCH] Don't allow forward slashes in sample names. Fixes #22 --- sradownloader | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sradownloader b/sradownloader index ef5cc5f..ed6c49c 100755 --- a/sradownloader +++ b/sradownloader @@ -33,7 +33,7 @@ import select from ftplib import FTP -VERSION = "3.10" +VERSION = "3.11" # These are the symbols we're going to need to remove # from any proposed file names @@ -254,7 +254,7 @@ def get_geo_name (srr_number, options): line = line.decode("UTF-8") if line.startswith("Title:"): line = line.strip() - geosections = re.split("[:; ,]+",line) + geosections = re.split("[:; ,/]+",line) sample_name = "_".join(geosections[1:]) break