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

SchemaEvaluator: alignment file missing raising error #119

Open
domenico-simone opened this issue Mar 7, 2022 · 2 comments
Open

SchemaEvaluator: alignment file missing raising error #119

domenico-simone opened this issue Mar 7, 2022 · 2 comments
Assignees
Labels
Status: In Progress Has been assigned and is being worked on. Type: Bug

Comments

@domenico-simone
Copy link

Hello,

while using the SchemaEvaluator module, I got the following error:

Traceback (most recent call last):
  File "/lustrehome/dsimone/miniconda3/envs/chewbbaca/bin/chewBBACA.py", line 8, in <module>
    sys.exit(main())
  File "/lustrehome/dsimone/miniconda3/envs/chewbbaca/lib/python3.6/site-packages/CHEWBBACA/chewBBACA.py", line 1414, in main
    functions_info[process][1]()
  File "/lustrehome/dsimone/miniconda3/envs/chewbbaca/lib/python3.6/site-packages/CHEWBBACA/utils/process_datetime.py", line 149, in wrapper
    func(*args, **kwargs)
  File "/lustrehome/dsimone/miniconda3/envs/chewbbaca/lib/python3.6/site-packages/CHEWBBACA/chewBBACA.py", line 597, in evaluate_schema
    input_files, pre_computed_data_path, protein_file_path, output_file, minimum_length, chewie_schema=True)
  File "/lustrehome/dsimone/miniconda3/envs/chewbbaca/lib/python3.6/site-packages/CHEWBBACA/SchemaEvaluator/schema_evaluator.py", line 1269, in write_individual_html
    msa_seq_gen = SeqIO.parse(msa_file_path, "fasta")
  File "/lustrehome/dsimone/miniconda3/envs/chewbbaca/lib/python3.6/site-packages/Bio/SeqIO/__init__.py", line 607, in parse
    return iterator_generator(handle)
  File "/lustrehome/dsimone/miniconda3/envs/chewbbaca/lib/python3.6/site-packages/Bio/SeqIO/FastaIO.py", line 183, in __init__
    super().__init__(source, mode="t", fmt="Fasta")
  File "/lustrehome/dsimone/miniconda3/envs/chewbbaca/lib/python3.6/site-packages/Bio/SeqIO/Interfaces.py", line 47, in __init__
    self.stream = open(source, "r" + mode)
FileNotFoundError: [Errno 2] No such file or directory: 'SchemaEvaluator/SchemaEvaluator_pre_computed_data/prot_files/genome1-protein1171_aligned.fasta'

I checked the file genome1-protein1171.fasta and turns out it has only one sequence, therefore my hypothesis is that the alignment file was not generated. Is there any way I can overcome this issue?

Thank you

Domenico

@rfm-targa rfm-targa self-assigned this Apr 20, 2022
@rfm-targa
Copy link
Contributor

Greetings @domenico-simone,

Thank you for your interest in chewBBACA and sorry for the delayed response. It does seem like the process is failing because it was not possible to generate the file with the MSA. We solved some issues related with loci that had a single allele, but this might be a similar issue that we still need to patch. Can you send us the Fasta file for the locus that is leading to this issue? It would help us to quickly identify the cause. Without a bugfix, the only way to avoid this is to remove that locus from the schema.

Best regards,

Rafael

@ramirma
Copy link
Member

ramirma commented Apr 20, 2022

Following up on @rfm-targa's response you can use our general email imm-bioinfo[at]medicina.ulisboa.pt if you would like to send it privately.

@rfm-targa rfm-targa added Type: Bug Status: In Progress Has been assigned and is being worked on. labels Apr 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: In Progress Has been assigned and is being worked on. Type: Bug
Projects
None yet
Development

No branches or pull requests

3 participants