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

AttributeError: 'MultipleSeqAlignment' object has no attribute 'format' #35

Open
kiavash17 opened this issue Dec 6, 2021 · 7 comments

Comments

@kiavash17
Copy link

Hi Thanks for sharing this tool.
After installation when running the example I get the following error:

$ synthego_ice --control ./ice/tests/test_data/good_example_control.ab1 --edited ./ice/tests/test_data/good_example_edited.ab1 --target AACCAGTTGCAGGCGCCCCA --out results/testing --verbose

Synthego ICE (https://synthego.com)
Version: 1.1.1-alpha1
Base dir: /rhampseq/kkiaee/ice/ice/results
Exception Caught!
Traceback (most recent call last):
  File "/home/ccadmin/anaconda3/envs/ice_env/lib/python3.8/site-packages/ice/analysis.py", line 82, in single_sanger_analysis
    sa.analyze_sample()
  File "/home/ccadmin/anaconda3/envs/ice_env/lib/python3.8/site-packages/ice/classes/sanger_analysis.py", line 799, in analyze_sample
    alignment.align_all()
  File "/home/ccadmin/anaconda3/envs/ice_env/lib/python3.8/site-packages/ice/classes/pair_alignment.py", line 94, in align_all
    self.all_aligned_clustal = self.align_list_to_clustal(aln, "control", "edited")
  File "/home/ccadmin/anaconda3/envs/ice_env/lib/python3.8/site-packages/ice/classes/pair_alignment.py", line 80, in align_list_to_clustal
    alignment_txt = aln_objs[0].format("clustal").split('\n', 2)[2]
AttributeError: 'MultipleSeqAlignment' object has no attribute 'format'

I'd appreciate your help in troubleshooting this.

@zhoubin1999
Copy link

zhoubin1999 commented Dec 29, 2021

change format to __format__

@innoxHenan
Copy link

Hi, I've encoutered the same error message. I tried change 'format' to 'format' for analysis.py, sanger_analysis.py and pair_alignment.py, but it did not work. How did you solve it?

@thuanguyen
Copy link

I have a same problem. please help.

@thuanguyen
Copy link

change format to __format__

I do not understand what do you mean by change format to __format__. In which file I need to change it?

@asyafiqe
Copy link

change format to __format__

I do not understand what do you mean by change format to __format__. In which file I need to change it?

pair_alignment.py, line 80
alignment_txt = aln_objs[0].__format__("clustal").split('\n', 2)[2]

@einsidhe
Copy link

Hi folks.
Actually changing 'format' to 'format' doesn't help.
Have anybody found the solution?

@sshen8
Copy link

sshen8 commented Mar 27, 2023

I was able to get around this issue with
pip install biopython==1.78
MultipleSeqAlignment.format was deprecated and removed after biopython v1.78 (docs)

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

7 participants