Skip to main content

PreKO: Precise KO system

Project description

PreKO: Precise KO system

Analysis pipeline for PreKO project

InDelSearcher: Cas9 nuclease indel analyzer

InDelSearcher는 target sequence에서 indel frequency를 분석하고 계산해주는 파이프라인이다. 특히, high-throughput screening 데이터에서 barcode에 따른 indel frequency를 분석하는 것에 특화되어 있다.

분석을 위해서, 아래와 같이 barcode와 target sequence 정보가 담긴 csv 파일이 필요하다.

Barcode Target_region Reference_sequence
TTTGCTGTGAGCACTGCTG TTGTGAACATAGATCCATTTTTCTTGG CTTGAAAAAGTGGCACCGAGTCGGTGCTTTTTTNNNNNNNNTTTGCTGTGAGCACTGCTGT
TTTGGACGTCATAGTGAGA TCCAGATAGTCATCAACTTTTTGTTGG CTTGAAAAAGTGGCACCGAGTCGGTGCTTTTTTNNNNNNNNTTTGGACGTCATAGTGAGAT
TTTGGCTATCTGCACGTGC GTGGGGGGCCTGGGGCCTGGAGCCTGG CTTGAAAAAGTGGCACCGAGTCGGTGCTTTTTTNNNNNNNNTTTGGCTATCTGCACGTGCG
TTTGATGCGCATCTCTACG CCCAGGCAAAACTGCAGTTTTACCTGG CTTGAAAAAGTGGCACCGAGTCGGTGCTTTTTTNNNNNNNNTTTGATGCGCATCTCTACGC
TTTGACTCGAGTCTCTCAC ACGAGGTGGCCCTGGGGGGCCCCCTGG CTTGAAAAAGTGGCACCGAGTCGGTGCTTTTTTNNNNNNNNTTTGACTCGAGTCTCTCACA

barcode 파일과 분석할 FASTQ 파일이 있다면, InDelSearcher를 이용한 분석을 할 수 있다.

import pandas as pd
from PreKO.indel import InDelSearcher

# Setting: required information
DIR_FASTQ   = f'NGS_data/Cas9_FASTQ_combined/'
barcode     = f'ref_Small_Cas9_KO_Lib.csv'

sample_name = f'HCT_Cas9_R1_Day7'
fastq_file  = f'{DIR_FASTQ}/{sample_name}.fastq'

ids = InDelSearcher()

# Run and show summary
df_summary = ids.run(strFq=fastq_file, barcode=barcode, sample_name=sample_name, thread=25)
df_summary.to_csv(f'InDel_Summary_{sample_name}.csv')

Environments

These codes were tested in Ubuntu 22.04 LTS environments.

Requirements

  • Python >= 3.8
  • biopython
  • pandas
  • numpy
  • pydantic
  • tqdm

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

preko-0.2.2.tar.gz (299.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

preko-0.2.2-py3-none-any.whl (22.7 kB view details)

Uploaded Python 3

File details

Details for the file preko-0.2.2.tar.gz.

File metadata

  • Download URL: preko-0.2.2.tar.gz
  • Upload date:
  • Size: 299.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for preko-0.2.2.tar.gz
Algorithm Hash digest
SHA256 12f66a16778a809049afd8d72e6bb2867ec863666d173e4534fc2585b47f2956
MD5 a5920c8c27dc05a3bce9a285be2b322f
BLAKE2b-256 29dbd8d02e2528555d86b6ed48e06b83a72be7f9cd609cc59ecfb925cfd22ce5

See more details on using hashes here.

File details

Details for the file preko-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: preko-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 22.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for preko-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 38c56a6a109420124655bf5b7ec1ac5ace6e7722d4866989872285ecf907c2fb
MD5 49986f76829ac2138e8b01345eb8ac4b
BLAKE2b-256 e4d6cb64145f917d98a042b1f251c00277d1958fa05cf5449624de9bb5ef6fbe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page