You are here

Error when run script ""

5 posts / 0 new
Last post
Error when run script ""

Hello guys,

I'm using the ligand docking protocol, and when I put the command below it does not generate the expected output file "2ou0_threaded.pdb"


/home/carlos/Downloads/Rosetta/rosetta_bin_linux_2017.08.59291_bundle/tools/protein_tools/scripts/ --template=2anv_A --target=2ou0_ --chain=A --align_format=clustal alignment.aln 2anv_A.pdb 2ou0_threaded.pdbD


Traceback (most recent call last):
  File "/home/carlos/Downloads/Rosetta/rosetta_bin_linux_2017.08.59291_bundle/tools/protein_tools/scripts/", line 63, in <module>
    template_gaps = alignment.find_gaps(alignment_data,options.template)
  File "/home/carlos/Downloads/Rosetta/rosetta_bin_linux_2017.08.59291_bundle/tools/protein_tools/rosettautil/protein/", line 18, in find_gaps
    if sequence == None:
  File "/home/carlos/.local/lib/python2.7/site-packages/Bio/", line 737, in __eq__
    raise NotImplementedError(_NO_SEQRECORD_COMPARISON)
NotImplementedError: SeqRecord comparison is deliberately not implemented. Explicitly compare the attributes of interest.

Please, help me?

Post Situation: 
Fri, 2018-03-09 09:38

I think you can try editing /home/carlos/Downloads/Rosetta/rosetta_bin_linux_2017.08.59291_bundle/tools/protein_tools/rosettautil/protein/, at line 18 where it has

if sequence == None:

change that to

if sequence is None:

That will fix the proximal error, though I'm not sure if other errors might pop up.  There are reports that recent updates to Biopython have changed how certain tools behave, which causes many of the scripts in Rosetta which use it to break. You may or may not run into that issue.

Fri, 2018-03-09 09:55

I did not find the part "if sequence == None:"
But I found at least 3 regions with "find_gaps"

I still do not know what to do.


My script printscreen

Fri, 2018-03-09 11:30

The "if sequence == None:" is not in the script itself, it's in a script that the script is calling. ( in tools/protein_tools/rosettautil/protein/)

Mon, 2018-03-12 13:59

Thank you rmoretti

It worked after the modification.

Sorted out.

Tue, 2018-03-13 07:12