Skip to content

Commit

Permalink
Metadata with all numerical SampleIDs not accepted, issue #50
Browse files Browse the repository at this point in the history
  • Loading branch information
yangchen2 committed Nov 6, 2023
1 parent c70bbff commit c09d96f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qadabra/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def _validate_input(
confounders: List[str] = None,
):
logger.info("Loading metadata...")
md = pd.read_table(metadata, sep="\t", index_col=0)
md = pd.read_table(metadata, sep="\t", index_col=0, dtype={0:'str'})

if factor_name not in md.columns:
raise ValueError(f"{factor_name} not found in metadata!")
Expand Down Expand Up @@ -69,4 +69,4 @@ def _validate_input(
raise ValueError("Tree tips are not a subset of table features!")
else:
logger.info("Reading phylogenetic tree...")
logger.info("(Optional tree file not provided. Skipping tree validation.)")
logger.info("(Optional tree file not provided. Skipping tree validation.)")

0 comments on commit c09d96f

Please sign in to comment.