Skip to content

Commit

Permalink
Patch - Upper case the column headers for clinical file (#474)
Browse files Browse the repository at this point in the history
* Upper case the column headers for clinical file

* Patch release
  • Loading branch information
thomasyu888 authored Jul 17, 2022
1 parent b028c80 commit 57d02ca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion genie/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@

# create version in __init__.py
# https://packaging.python.org/en/latest/guides/single-sourcing-package-version/
__version__ = "14.0.0"
__version__ = "14.0.1"

__all__ = ["__version__"]
4 changes: 4 additions & 0 deletions genie_registry/clinical.py
Original file line number Diff line number Diff line change
Expand Up @@ -978,8 +978,12 @@ def _validate(self, clinicaldf):

def _get_dataframe(self, filePathList):
clinicaldf = pd.read_csv(filePathList[0], sep="\t", comment="#")
clinicaldf.columns = [col.upper() for col in clinicaldf.columns]

if len(filePathList) > 1:
other_clinicaldf = pd.read_csv(filePathList[1], sep="\t", comment="#")
other_clinicaldf.columns = [col.upper() for col in other_clinicaldf.columns]

try:
clinicaldf = clinicaldf.merge(other_clinicaldf, on="PATIENT_ID")
except Exception:
Expand Down

0 comments on commit 57d02ca

Please sign in to comment.