Skip to content

Commit

Permalink
Don't allow forward slashes in sample names. Fixes #22
Browse files Browse the repository at this point in the history
  • Loading branch information
s-andrews committed Oct 6, 2023
1 parent 5509ae9 commit 737c05b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sradownloader
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 737c05b

Please sign in to comment.