Skip to main content

ngstools

Project description

Author : Liubo <Ben-unbelieveable>

ngstools

Useful toolkits for NGS analysis

Main Class

CPRA

一个最简化的突变对象,通过染色体位置完成对象的初始化,同时支持加载参考基因组和样本比对的Bam文件,来实现更多的个性化操作。

from ngstoolkits import CPRA
# 初始化对象
mutsite=CPRA("chr6",159188398,"C","T")

# 加载bam文件
CPRA.loadBam("test_data/pancancer689__DX2083_sijuan_20S12590085_20B12590085__Cancer.realign.bam")
# 加载参考基因组
CPRA.loadReference("test_data/hg19.fa")

# 基于Bam文件获取突变支持信息
mutsite.get_suppot()
# 得到的突变支持信息
mutsite.support_reads # 支持突变的list,内容是pysam的AlignedSegment对象
mutsite.cover_readsID_list # 支持突变的reads的ID
mutsite.support_readsID_list # 覆盖突变的reads的ID

Seq

序列处理相关的静态函数

Seq.reverse_complement

返回所提供序列的反向互补序列

from ngstoolkits import Seq
Seq.reverse_complement("ATGC") # 返回 "GCAT"

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

ngstoolkits-1.0.0rc9.tar.gz (22.7 kB view details)

Uploaded Source

Built Distribution

ngstoolkits-1.0.0rc9-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file ngstoolkits-1.0.0rc9.tar.gz.

File metadata

  • Download URL: ngstoolkits-1.0.0rc9.tar.gz
  • Upload date:
  • Size: 22.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.5

File hashes

Hashes for ngstoolkits-1.0.0rc9.tar.gz
Algorithm Hash digest
SHA256 65f2ffa76dcae63fcdda85efa4851407a49b51e4aaed1fc1f9773edeae57a84e
MD5 ee8c3b6f9668dec15185ae50dff51f38
BLAKE2b-256 ef0d43258d98803b3d600c267c1d934594dc820aa3efebd7e3965a285d86a35c

See more details on using hashes here.

File details

Details for the file ngstoolkits-1.0.0rc9-py3-none-any.whl.

File metadata

File hashes

Hashes for ngstoolkits-1.0.0rc9-py3-none-any.whl
Algorithm Hash digest
SHA256 c131e17c5f269cbdeb30532f21edaddea281aba69d25070532b242fd63e2688d
MD5 d203ed76e473444e4425db0af65c8402
BLAKE2b-256 4af6075983036bffd41f461fef303d55f7a86f4021f6113c85c7c16dbb97b76b

See more details on using hashes here.

Supported by

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