Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yihming committed Jul 28, 2020
1 parent e483b5e commit 877bb33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pegasusio/data_aggregation.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ def aggregate_matrices(
if input_file == copy_path:
input_file = dest_path
else:
input_file = os.path.join(dest_path, os.path.basename(input_file))
input_file = os.path.join(dest_path, os.path.basename(input_file))

genome = row.get("Reference", None)
if (genome is not None) and (not instance(genome, str)): # to avoid NaN
if (genome is not None) and (not isinstance(genome, str)): # to avoid NaN
genome = None
if genome is None:
genome = def_genome
Expand Down

0 comments on commit 877bb33

Please sign in to comment.