반응형

1. Python 설치

http://isbyeon.tistory.com/entry/Python-273-%EC%84%A4%EC%B9%98


2. Biopython 설치

다운로드 : http://biopython.org

설치 :

# cd /usr/local/src

# wget http://biopython.org/DIST/biopython-1.60.tar.gz

# tar zxvfp biopython-1.60.tar.gz

# cd biopython-1.60

# python setup.py build

# python setup.py install



3. 테스트

# python

>>>  from Bio.Seq import Seq

>>> from Bio.Alphabet.IUPAC import unambiguous_dna

>>> new_seq = Seq('GATCAGAAG', unambiguous_dna)

>>> new_seq[0:2]

Seq('GA', IUPACUnambiguousDNA())

>>> from Bio import Translate

>>> translator = Translate.unambiguous_dna_by_name["Standard"]

>>> translator.translate(new_seq)

Seq('DQK', HasStopCodon(IUPACProtein(), '*'))

>>>

반응형

'Lang_Development > Python' 카테고리의 다른 글

[Python] numpy & scipy  (0) 2014.01.09
PIP 설치  (0) 2012.10.31
설치된 Python 패키지 및 모듈 확인  (0) 2012.06.07
easy_install 설치  (0) 2012.06.06
Python 설치  (0) 2012.06.06
  • 네이버 블러그 공유하기
  • 네이버 밴드에 공유하기
  • 페이스북 공유하기
  • 카카오스토리 공유하기