Skip to content

Commit

Permalink
Merge branch 'master' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgigante authored Jun 8, 2018
2 parents 25f5953 + decb351 commit 0a0acc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Python/phate/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ def load_10X(data_dir, sparse=True, gene_labels='symbol'):
columns = pd.Index(genes[gene_labels])
if sparse and np.sum(columns.duplicated()) > 0:
warnings.warn(
"Duplicate gene names detected! Forcing `gene_labels='both'`."
"Duplicate gene names detected! Forcing `gene_labels='id'`."
"Alternatively, try loading the matrix with "
"`sparse=False`", RuntimeWarning)
columns = _combine_gene_id(genes)
columns = genes['id']

if sparse:
data = pd.SparseDataFrame(m.T, index=index,
Expand Down

0 comments on commit 0a0acc4

Please sign in to comment.