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

Getting a strange error: Exception: expected str, bytes or os.PathLike object, not dict #70

Closed
namsca opened this issue May 31, 2019 · 8 comments

Comments

@namsca
Copy link

namsca commented May 31, 2019

Hi,

I couldn't seem to get on the google groups page so apologies if this is the wrong place for troubleshooting but I can't seem to get around this strange error I keep getting, no matter what I change.
e6951411.txt

Any ideas what might be happening? The command I am using is:

python /data/users/nscales/miniconda3/pkgs/sepp-4.3.8-py37_0/bin/run_sepp.py
-t RAxML_ezread.nwk
-a microbacteriaceae-aligned-short-names.fasta
-f rep-seqs.fasta
-r RAxML_info.txt
-o five

I am attempting to work out exactly what is being placed where by manually changing the query fasta file and then using guppy to_csv to look at the edge_num to see where they are being placed and SEPP was working fine yesterday so I wondered if it was because of the short length of query fasta?

@namsca namsca changed the title Strange error Getting a strange error: Exception: expected str, bytes or os.PathLike object, not dict May 31, 2019
@smirarab
Copy link
Owner

smirarab commented Jun 2, 2019 via email

@MGNute
Copy link
Collaborator

MGNute commented Jun 2, 2019 via email

@namsca
Copy link
Author

namsca commented Jun 3, 2019

Hi - thanks for getting back to me!

As an update it looks to be that the length of the file is the key factor in having this work, as I ran a small subset of the fasta that worked previously cut down to 300 lines and it worked, but when I cut this down to 200 lines I got the above error.

300-seqs.fasta.txt

I have attached the file that worked, if you would like to see if you can reproduce this error I ran the following command to make it only 200 lines:

sed '201,300d' 300-seqs.fasta > 200-seqs.fasta

At which point the following command stopped working:

python /data/users/nscales/miniconda3/pkgs/sepp-4.3.8-py37_0/bin/run_sepp.py
-t RAxML_ezread.nwk
-a microbacteriaceae-aligned-short-names.fasta
-f 200-seqs.fasta
-r RAxML_info.txt

My tree has 69 sequences (138 lines) - could it be something to do with having a query fasta which is only slightly bigger than the tree itself? If this still seems strange let me know and I can send you the input files.

Thanks,
Nick

@smirarab
Copy link
Owner

Can you also share with me
RAxML_ezread.nwk, microbacteriaceae-aligned-short-names.fasta, and RAxML_info.txt? I need to be able to reproduce the error in order to debug it. Thanks

@smirarab
Copy link
Owner

nevermind. I detected the source of error and can reproduce with another file. Will fix soon.

smirarab added a commit that referenced this issue Aug 17, 2019
@smirarab
Copy link
Owner

Fixed in version 4.9.10, commit: bd26318

Nick, thanks a lot for the bug report. Was helpful to catch a corner case that was not tested before.

@sjanssen2
Copy link
Contributor

sjanssen2 commented Aug 17, 2019 via email

@smirarab
Copy link
Owner

Release was created

gillichu pushed a commit to gillichu/sepp that referenced this issue Jun 10, 2021
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

4 participants