- fetch 1crn
- run mv2origin.py; mv2origin 1crn
- run axes.py; axes
第2步:把分子放到原點
第3步:畫出XYZ的座標軸,驗證分子真的被放到原點上
#!/bin/bash
if [ $a -ge 10 ]; then
true
elif [ $a -le 5 ]; then
:
else
echo "ELSE!!"
fi
<div style="page-break-after: always;"></div>
Envelope proteins of Zika virus (PDB code: 5IRE) |
#!/usr/bin/python
def one2three(a):
"""
Convert one letter code to three letter code
"""
aa1to3 = {'A':"Ala", 'R':"Arg", 'N':"Asn", 'D':"Asp", 'C':"Cys",
'E':"Glu", 'Q':"Gln", 'G':"Gly", 'H':"His", 'I':"Ile",
'L':"Leu", 'K':"Lys", 'M':"Met", 'F':"Phe", 'P':"Pro",
'S':"Ser", 'T':"Thr", 'W':"Trp", 'Y':"Tyr", 'V':"Val"}
aa3to1 = {three: one for one, three in aa1to3.iteritems()}
if (a in aa1to3.iterkeys()):
aaa = aa1to3[a]
else:
aaa = 'X'
return aaa
if __name__ == "__main__":
s = str(raw_input("Please enter a protein sequence: "))
seq = list()
for a in s.upper():
seq.append(one2three(a))
print('-'.join(seq))