I am trying to isolate certain pieces of information within a dsn6 file. Specifically, I want to find the electron density around two atoms within a protein. I want to then run a python code to determine if there is positive electron density between the two of them. In order to do so, I believe I need to convert the dsn6 file, which is stored in a very compressed format, into a format I can understand.
I have searched around found ways to view dsn6 files (such as through PyMOL or COOT in CCP4) as a model. However, I do not know a way to view this decompressed file as text. I have tried, but have been completely unsuccessful in trying to figure out how these programs decompress/read the files.
This is what a piece of a dsn6 file currently looks like:
˘>˝‰‡>™†≠>I14>)B=*À¢<™ÅK=i§=‰≤Ñ=ê8ºO∑ææÑ¸ΩﬁZ Ω2…=wÇ=œjÖ=ÿm=◊6=â(:ÿ◊ôΩl≥æ=sËΩ,vzºËm >dg>ÄàG>>hº&>è,>SªÂ=
I hope that the decompressed dsn6 file will look similar to what a pdb file looks like. For example,
ATOM 228 OG1 THR A 58 7.843 45.672 59.760 1.00 15.56 O ATOM 229 CG2 THR A 58 6.672 44.132 61.223 1.00 14.90 C ATOM 230 N PRO A 59 9.292 42.373 62.754 1.00 13.16 N ATOM 231 CA PRO A 59 9.409 40.982 63.160 1.00 13.07 C
I asked this question in Stack Overflow, but thought that it might be better suited here. Thank you for the help!