select all
restrict none
define dna_chains *:B or *:C 
define o_rib dna and (*.O?* or *.O4' or *.O5')
define o_p dna and (*.O?P or *.OP?) 
define c_rib dna and (*.C?* or *.C?') 
define p_p *.P and dna 
define n_dna dna_chains and *.N?
define hphobic_prot protein and (*.C?? or *.S?)
define hphy_prot protein and (*.O?? or *.N??)
define hphy_bigdna dna_chains and (*.N4 or *.O4 or *.N6 or *.O6 or *.N7)
define hphy_smalldna dna_chains and (*.N2 or *.O2 or *.N3)
define hphobic_bigdna dna_chains and ((pyrimidine and (*.C4 or *.C5 or *.C6 or *.C7)) or (purine and (*.C5 or *.C6 or *.C8)))
define hphobic_smalldna dna_chains and (pyrimidine and *.C2) or (purine and (*.C2 or *.C4)))

restrict none
select all
wireframe 50
color cpk
pause
restrict dna_chains
pause
select o_rib
cpk 150
echo oxygen from ribose
pause
cpk off
select o_p
cpk 150
echo oxygen from phosphates
pause
cpk off
select n_dna
cpk 150
echo nitrogen from nucleic bases
pause
cpk off
select hphy_prot and within(3.5, o_rib)
cpk 150
echo here are protein atoms participated in polar interactions with oxygen atoms from ribose
pause
cpk off
select hphobic_prot and within(4.5, c_rib)
cpk 150
echo here are protein atoms participated in hydrophobic interactions with carbon atoms from ribose
pause
cpk off
select hphy_prot and within(3.5, o_p)
cpk 150
echo here are protein atoms participated in polar interactions with oxygen atoms from phosphates
pause
cpk off
select hphobic_prot and within(4.5, p_p)
cpk 150
echo here are protein atoms participated in hydrophobic interactions with phosphorus atoms from phosphates
pause
cpk off
select hphy_prot and within(3.5, hphy_bigdna)
cpk 150
echo here are protein atoms participated in polar interactions with nucleic bases from big furrow
pause
cpk off
select hphobic_prot and within(4.5, hphobic_bigdna)
cpk 150
echo here are protein atoms participated in hydrophobic interactions with nucleic bases from big furrow
pause
cpk off
select hphy_prot and within(3.5, hphy_smalldna)
cpk 150
echo here are protein atoms participated in polar interactions with nucleic bases from small furrow
pause
cpk off
select hphobic_prot and within(4.5, hphobic_smalldna)
cpk 150
echo here are protein atoms participated in hydrophobic interactions with nucleic bases from small furrow
pause
cpk off


