Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Index matching Float / String #3

Closed
justingeier opened this issue Sep 4, 2018 · 1 comment
Closed

Index matching Float / String #3

justingeier opened this issue Sep 4, 2018 · 1 comment

Comments

@justingeier
Copy link

Index from md is float:
(Float64Index([ 10317.000054161, 10317.000033729, 10317.000065509,
...
dtype='float64', name='#SampleID', length=609),

Index from BIOM table is string:
array(['10317.000054161', '10317.000033729', '10317.000065509',
...
'10317.000029409', '10317.000059111', '10317.000038006'],
dtype=object))

Yields error:
miniconda3/envs/regression/lib/python3.5/site-packages/pandas/core/indexing.py", line 1206, in _validate_read_indexer
key=key, axis=self.obj._get_axis_name(axis)))
KeyError: "None of [['10317.000054161' .....'10317.000059111'\n '10317.000038006']] are in the [index]"

From command:
songbird multinomial
--formula 'vioscreen_fiber'
--input-biom exported-subset-by-country/feature-table.biom
--metadata-file by_country.csv
--summary-dir results

@mortonjt
Copy link
Collaborator

mortonjt commented Sep 4, 2018

Fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants