Skip to content

Commit c65f3f8

Browse files
authored
V1.3.8 (#130)
* v1.3.8
1 parent 0f900bd commit c65f3f8

8 files changed

Lines changed: 13579 additions & 7 deletions

File tree

README.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ github_pages_url <- description$GITHUB_PAGES
2626

2727
<p style="font-size: 16px;"><em>Public Database Submission Pipeline</em></p>
2828

29-
**Beta Version**: v1.3.7. This pipeline is currently in Beta testing, and issues could appear during submission. Please use it at your own risk. Feedback and suggestions are welcome!
29+
**Beta Version**: v1.3.8. This pipeline is currently in Beta testing, and issues could appear during submission. Please use it at your own risk. Feedback and suggestions are welcome!
3030

3131
**General Disclaimer**: This repository was created for use by CDC programs to collaborate on public health related projects in support of the [CDC mission](https://www.cdc.gov/about/organization/mission.htm). GitHub is not hosted by the CDC, but is a third party website used by CDC and its partners to share information and collaborate on software. CDC use of GitHub does not imply an endorsement of any one particular service, product, or enterprise.
3232

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
<!-- ![GitHub last commit](https://img.shields.io/github/last-commit/montilab/cadra) -->
1111

12-
**Beta Version**: 1.3.7. This pipeline is currently in Beta testing, and
12+
**Beta Version**: 1.3.8. This pipeline is currently in Beta testing, and
1313
issues could appear during submission. Please use it at your own risk.
1414
Feedback and suggestions are welcome\!
1515

docs/app.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

genbank_handler.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,17 @@ def create_authorset(config_dict: Dict[str, Any], metadata: pd.DataFrame, submis
141141
f.write(" cit {\n")
142142
f.write(" authors {\n")
143143
f.write(" names std {\n")
144-
authors = [HumanName(x.strip()) for x in metadata["authors"].unique()[0].split(";") if x.strip() != ""]
144+
# If semi-colon in authors string, that is default delim
145+
if ";" in metadata["authors"].unique()[0]:
146+
author_delim = ";"
147+
# If no semi-colon in authors string, attempt comma
148+
elif "," in metadata["authors"].unique()[0]:
149+
author_delim = ","
150+
print("Warning: Metadata 'authors' field is not using a semi-colon ';' to separate individual names. Comma was detected instead and is being used to separate individual names. If this causes issues, separate each name with a semi-colon instead.", file = sys.stderr)
151+
# Default delim is semi-colon
152+
else:
153+
author_delim = ";"
154+
authors = [HumanName(x.strip()) for x in metadata["authors"].unique()[0].split(author_delim) if x.strip() != ""]
145155
total_names = len(authors)
146156
for index, name in enumerate(authors, start = 1):
147157
f.write(" {\n")
@@ -179,7 +189,7 @@ def create_authorset(config_dict: Dict[str, Any], metadata: pd.DataFrame, submis
179189
f.write(" cit \"" + publication_status_string + "\",\n")
180190
f.write(" authors {\n")
181191
f.write(" names std {\n")
182-
authors = [HumanName(x.strip()) for x in metadata["authors"].unique()[0].split(";") if x.strip() != ""]
192+
authors = [HumanName(x.strip()) for x in metadata["authors"].unique()[0].split(author_delim) if x.strip() != ""]
183193
for index, name in enumerate(authors, start = 1):
184194
f.write(" {\n")
185195
f.write(" name name {\n")

metadata.csv

Lines changed: 54 additions & 0 deletions
Large diffs are not rendered by default.

sequence.fasta

Lines changed: 13508 additions & 0 deletions
Large diffs are not rendered by default.

settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
PROG_DIR: str = os.path.dirname(os.path.abspath(__file__))
1313

1414
# SeqSender version
15-
VERSION: str = "1.3.7 (Beta)"
15+
VERSION: str = "1.3.8 (Beta)"
1616

1717
# Organism options with unique submission options
1818
ORGANISM_CHOICES: List[str] = ["FLU", "COV", "POX", "ARBO", "RSV", "OTHER"]

shiny/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
header = (
2121
ui.card_header(
2222
ui.HTML(
23-
"""<p><strong>Beta Version</strong>: 1.3.7. This pipeline is currently in Beta testing, and issues could appear during submission. Please use it at your own risk. Feedback and suggestions are welcome!</p>"""
23+
"""<p><strong>Beta Version</strong>: 1.3.8. This pipeline is currently in Beta testing, and issues could appear during submission. Please use it at your own risk. Feedback and suggestions are welcome!</p>"""
2424
)
2525
),
2626
)

0 commit comments

Comments
 (0)