ice icon indicating copy to clipboard operation
ice copied to clipboard

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

Open kiavash17 opened this issue 2 years ago • 7 comments

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.

kiavash17 avatar Dec 06 '21 18:12 kiavash17

change format to __format__

zhoubin1999 avatar Dec 29 '21 15:12 zhoubin1999

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?

innoxHenan avatar Aug 17 '22 02:08 innoxHenan

I have a same problem. please help.

thuanguyen avatar Nov 03 '22 21:11 thuanguyen

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?

thuanguyen avatar Nov 03 '22 21:11 thuanguyen