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

export.mayu: TypeError: 'ScoredTable' object has no attribute '__getitem__' #19

Open
danielhyduke opened this issue Oct 29, 2015 · 0 comments

Comments

@danielhyduke
Copy link

When running pyprophet 0.18.3 with the --export.mayu option, I get the following error:
TypeError: 'ScoredTable' object has no attribute 'getitem'

This appears be due to the following code where indexing is being done on a ScoredTable object instead of the associated DataFrame (ScoredTable.df) in report.py

https://github.com/uweschmitt/pyprophet/blob/master/pyprophet/report.py#L115

mayu_csv = scored_table[scored_table["peak_group_rank"] == 1][interesting_cols]

https://github.com/uweschmitt/pyprophet/blob/master/pyprophet/report.py#L126

mayu_fasta = scored_table[scored_table["peak_group_rank"] == 1]

pyprophet 0.18.3
OpenSwathWorkflow -- Complete workflow to run OpenSWATH
Version: 2.0.0 Sep 9 2015, 13:29:57, Revision: 66a7739
CENTOS 7 64-bit
python 2.7.9

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

1 participant