Closed bobaoai closed 5 years ago
This error is caused by GlycoCT serialization code assuming that the Glycan object was indexed already. I've added a check for this and it will index the glycan automatically.
There is a method to do this subtree enumeration directly without needing to resort to fragment_to_substructure
, Glycan.substructures
. It uses the same machinery as Glycan.fragments
, but skips the extra work that fragments
does to account for the bond cleavage losses from particular types of dissociation in a mass spectrometer.
Hi, I am using this code to get all possible substructures in "_glycan". I cannot get the string of the substructure.
I tried to print the node that generated the error by inserting some print() in source code: The error returns: RES 1b:x-dglc-HEX-1:5 2s:n-acetyl LIN 1:1d(2+1)2n 2 RES 1b:x-dglc-HEX-1:5 2s:n-acetyl LIN 1:1d(2+1)2n 2 tag 0 (4)o(-1+1)d(5)[x] (5)o(-1+1)d(6)[x] None
TypeError Traceback (most recent call last)