PYTHON๐Ÿ

[๋ฐ”์ด์˜คํŒŒ์ด์ฌ] biopython ์„ค์น˜ ๋ฐฉ๋ฒ•

ํžˆ์Šคํ†ค 2024. 5. 7. 10:18

NGS ๋ฐ์ดํ„ฐ๋ฅผ ๋‹ค๋ฃจ๋‹ค๋ณด๋ฉด Fastq, BAM, VCF ๋“ฑ ๋‹ค์–‘ํ•œ ํ˜•์‹์˜ ํŒŒ์ผ์„ ์ ‘ํ•˜๊ฒŒ ๋ฉ๋‹ˆ๋‹ค.

์˜ค๋Š˜์€ ๊ทธ์ค‘์—์„œ Fastq ํŒŒ์ผ์„  biopython์„ ์ด์šฉํ•˜์—ฌ ๋‹ค๋ค„๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค.

 

1. Biopython ์ด๋ž€?

 

์ฐธ๊ณ  ๋งํฌ : https://biopython.org/

 

๋ฐ”์ดํŒŒ์ด์ฌ์ด๋ž€ ํŒŒ์ด์ฌ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์ค‘ ํ•˜๋‚˜๋กœ, ๋ถ„์ž์ƒ๋ฌผํ•™ ๊ณ„์‚ฐ์— ์ž์œ ๋กญ๊ฒŒ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์œ ์ „์ฒด ๋ฐ์ดํ„ฐ ์„œ์—ด์„ ์ฝ๊ฑฐ๋‚˜ ์ƒ๋ฌผ ์ •๋ณด ๋ฐ์ดํ„ฐ๋ฅผ ๋‹ค๋ฃจ๋Š”๋ฐ ์ฃผ๋กœ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.

 

์•„๋ž˜ ํ˜•์‹๋“ค์˜ ํŒŒ์ผ๋“ค์€ Biopython์—์„œ ์ง€์›ํ•˜๋Š” ํŒŒ์ผ ํ˜•์‹๋“ค ์ž…๋‹ˆ๋‹ค.

- Blast output

- Clustalw

- FASTA

- GeneBank

- PubMed

- ExPASy files

- SCOP

- UniGene

- SwissProt

 

2. Biopython ์„ค์น˜๋ฐฉ๋ฒ• (LINUX, MAC)

 

ํ˜„์žฌ ๋‚˜์™€์žˆ๋Š” biopython ์ตœ์‹ ๋ฒ„์ „์€ 1.83์œผ๋กœ ํ•ด๋‹น ๋ฒ„์ „์„ ์„ค์น˜ํ•ด๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค.

 

๊ฐ€์žฅ ๋จผ์ € ํ•ด์•ผํ• ์ผ์€ linux์— python package management tool์ธ pip์„ ์„ค์น˜ํ•˜๋Š” ์ผ ์ž…๋‹ˆ๋‹ค.

pip์ด ์„ค์น˜๋˜์–ด์žˆ๋‹ค๋ฉด ์•„๋ž˜์™€ ๊ฐ™์ด pip์„ ์ด์šฉํ•˜์—ฌ biopython์„ ์„ค์น˜ํ•ด์ค๋‹ˆ๋‹ค.

์ฐธ๊ณ ๋กœ biopython์€ python2, python3 ์—์„œ ๋ชจ๋‘ ์„ค์น˜๊ฐ€ ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค.

 

<biopython ์„ค์น˜ํ•˜๊ธฐ>

pip install biopython

 

<biopython ์—…๊ทธ๋ ˆ์ด๋“œ ํ•˜๊ธฐ>

pip install --upgrade biopython

 

<biopython ์‚ญ์ œํ•˜๊ธฐ>

pip uninstall biopython

 

์„ค์น˜๊ฐ€ ๋˜์—ˆ๋‹ค๋ฉด ํ„ฐ๋ฏธ๋„์—์„œ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ์ฝ”๋“œ๋กœ ์„ค์น˜๊ฐ€ ์™„๋ฃŒ๋˜์—ˆ๋Š”์ง€ ํ™•์ธํ•ฉ๋‹ˆ๋‹ค.

import Bio
Bio.__version__

 

import Bio๋ฅผ ์ž…๋ ฅํ•˜์˜€์„๋•Œ, ์•„๋ฌด ์˜ค๋ฅ˜์—†์ด ์ถœ๋ ฅ๋œ๋‹ค๋ฉด ์„ค์น˜๊ฐ€ ์™„๋ฃŒ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

Biopython์˜ ๋ฒ„์ „์„ ์•Œ๊ณ ์‹ถ์„ ๊ฒฝ์šฐ Bio.__version__์„ ์ž…๋ ฅํ•˜๋ฉด ์„ค์น˜๋œ biopython ๋ฒ„์ „์„ ํ™•์ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.