-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
Edit: The issue was resolved by moving from python 3.7 to 3.6, so it is likely an issue with something in 3.7.
I obtained a comet output file from a closed search in the pin format. I ran the code below, mirroring the basic example found on the docs, and got this error:
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
~\AppData\Roaming\Python\Python37\site-packages\mokapot\brew.py in brew(psms, model, test_fdr, folds, max_workers, rng)
115 try:
--> 116 fitted = [[m, False] for m in model if m.is_trained]
117 assert len(fitted) == len(model) # Test that all models are fitted.
TypeError: 'PercolatorModel' object is not iterable
I'm not sure why it expects model to be a list- is there something else I'm missing?
To Reproduce:
Here is a download link for the .pin file I used: https://drive.google.com/uc?export=download&id=1sZFU7j-l5BtL_zIpfu7TFlye8mIyd_B8
import mokapot
import pandas as pd
psms = mokapot.read_pin("Results/QEP2_2018_0812_AZ_024_az732_AZ.pin")
results, fitted_models = mokapot.brew(psms)
Metadata
Metadata
Assignees
Labels
No labels