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

"stop iteration" trouble #53

Open
rominageysels opened this issue Sep 13, 2021 · 2 comments
Open

"stop iteration" trouble #53

rominageysels opened this issue Sep 13, 2021 · 2 comments

Comments

@rominageysels
Copy link

Hi, I'm trying to run MMSplice using the google colab notebook online. For some reason, I wasn't able to download MMSplice from kipoi directly in my computer... maybe it was because I have Windows, not Linux OS. I got lots of errors I just couldn't deal with. Anyways, I tried to run this model online to assess my VCF and in this part:

predict_save(model, dl, output_csv, pathogenicity=True, splicing_efficiency=True)

I got this error:

StopIteration Traceback (most recent call last)
in ()
----> 1 predict_save(model, dl, output_csv, pathogenicity=True, splicing_efficiency=True)

1 frames
/usr/local/lib/python3.7/dist-packages/mmsplice/mmsplice.py in predict_save(model, dataloader, output_csv, batch_size, progress, pathogenicity, splicing_efficiency)
272 splicing_efficiency=splicing_efficiency)
273
--> 274 return df_batch_writer(df_iter, output_csv)
275
276

/usr/local/lib/python3.7/dist-packages/mmsplice/utils.py in df_batch_writer(df_iter, output)
41
42 def df_batch_writer(df_iter, output):
---> 43 df = next(df_iter)
44 with open(output, 'w') as f:
45 df.to_csv(f, index=False)

StopIteration:

Obviously, I can't run the next lines because something is missing there. I think may be this is a bug, but i'm not sure (I'm not an expert in programming)
Would you advice me to try installing MMSplice in another computer with LinuxOS instead of running the google colab?
I will be very grateful if you can help me solve this issue, and if someone got the same error please let me know too.

--Romina--

@s6juncheng
Copy link
Collaborator

Could you please double-check whether your VCF file is empty or the format is incorrect?

@rominageysels
Copy link
Author

I checked, the VCF file is not empty. I created it using Data Slicer from Ensembl(GRCh37), then downloaded as a compressed file.

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