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

Ragout error - TypeError: expected str, bytes or os.PathLike object, not NoneType #76

Open
ChuChuChaddy opened this issue Feb 8, 2022 · 2 comments
Labels

Comments

@ChuChuChaddy
Copy link

Since I read the paper for Ragout I've been really excited to use it for my work. I've been trying to improve a genome assembly for tree swallow using a method I found in a paper(1) using Ragout. I included a closely related species (Barn swallow) with a high quality genome and added 12 other bird species with high quality genomes into the hal file.

I ran into the previously mentioned issue with hal2mafMP.py (#60) and worked around this using hal2maf. I'm currently running this in a virtual environment on our cluster for the extra memory (~162GB ram). My new error is posted below and I am unsure how to fix it. I've included my recipe file, pbs script and the debug file from Ragout. Any help would be appreciated! Thank you in advance.

[01:03:44] INFO: Reading contigs file
Traceback (most recent call last):
File "/home/mansfieldc/privatemodules/my/Ragout/bin/ragout", line 32, in
sys.exit(main())
File "/home/mansfieldc/privatemodules/my/Ragout/ragout/main.py", line 295, in main
_run_ragout(args)
File "/home/mansfieldc/privatemodules/my/Ragout/ragout/main.py", line 197, in _run_ragout
target_sequences = read_fasta_dict(synteny_backend.get_target_fasta())
File "/home/mansfieldc/privatemodules/my/Ragout/ragout/parsers/fasta_parser.py", line 40, in read_fasta_dict
with open(filename, "rb") as f:
TypeError: expected str, bytes or os.PathLike object, not NoneType

Coelho et al., A Multireference-Based Whole Genome Assembly for the Obligate Ant-Following Antbird, Rhegmatorhina melanosticta (Thamnophilidae)

ragout.err.txt
ragout_script.txt
recipe.txt

@mikolmogorov
Copy link
Owner

Sorry for the late response! You need to provide a path to the file with contigs in your recipe file. Add the following line: tbicolor.fasta = XXX. Not sure why the error was not properly reported - sorry about that.

@ChuChuChaddy
Copy link
Author

ChuChuChaddy commented Mar 2, 2022 via email

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

No branches or pull requests

2 participants