Hello Good People,
Now, I have a 2D list object fps
containing 4 items
and length is 2006
. Object looks like
['0012', 'CCN[C@H]1CN', <rdkit.Chem.rdchem.Mol object at 0x7fea177a0260>, <rdkit.DataStructs.cDataStructs.ExplicitBitVect object at 0x7fea0f2fd030>]
['0015', 'CCN[H@H]1CN', <rdkit.Chem.rdchem.Mol object at 0x7fea177a0260>, <rdkit.DataStructs.cDataStructs.ExplicitBitVect object at 0x7fea0f2fd030>]
... so on
If I want to print only the 4th elements with all the next 4th elements of the list.
for n in range(len(fps)-1):
print(fps[n][3], fps[n+1:][3])
The first one is printing correctly but the second one printing all elements (1st, 2nd, 3rd, and 4th). Printing the whole elements of the object:
<rdkit.DataStructs.cDataStructs.ExplicitBitVect object at 0x7fde5df8f300> ['00299', 'Nc1nc(=O)c2ncn(CCC(CO)CO)c2[nH]1', <rdkit.Chem.rdchem.Mol object at 0x7fde5dfde530>, <rdkit.DataStructs.cDataStructs.ExplicitBitVect object at 0x7fde5df8f440>]
But I need only the 4th. Could you tell me why this is happening?
Any kinds of suggestions are appreciable.