分块存储的FASTA序列对象,用于处理大型基因组序列,例如植物基因组,动物基因组这些序列长度超过了2GB的基因组序列
ChunkedNtFasta
00 Remarks
all char in this sequence has already been converted to upper case
01 Syntax
SMRUCC.genomics.SequenceModel.NucleotideModels.ChunkedNtFasta
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| LoadDocument | 1 | 从文件流中加载FASTA文档 |
| Kmers | 1 | all char in this sequence has already been converted to upper case |
| GetRegion | 1 | 获取指定区域的序列字符串 |
| CharToDNA | 1 | 将字符转换为DNA枚举值 |
| DNAToChar | 1 | 将DNA枚举值转换为字符 |
| ToString | 1 | 获取序列的字符串表示(用于调试,可能不返回完整序列) |
| ReadFromFile | 1 |
03 Properties
04 Members
LoadDocument(
Stream, Int32)从文件流中加载FASTA文档
Parameters
| Name | Type | Description |
|---|---|---|
s | Stream | 输入文件流 |
chunkSize | Int32 | 分块大小,默认32MB |
Returns
FASTA序列对象的枚举
Kmers(
Int32)all char in this sequence has already been converted to upper case
Parameters
| Name | Type | Description |
|---|---|---|
k | Int32 | - |
GetRegion(
Int64, Int64)获取指定区域的序列字符串
Remarks
all char in this sequence has already been converted to upper case
Parameters
| Name | Type | Description |
|---|---|---|
left | Int64 | 起始位置(从1开始) |
right | Int64 | 结束位置(从1开始) |
Returns
指定区域的序列字符串
CharToDNA(
Char)将字符转换为DNA枚举值
Parameters
| Name | Type | Description |
|---|---|---|
c | Char | 字符 |
Returns
对应的DNA碱基
DNAToChar(DNA)
将DNA枚举值转换为字符
Parameters
| Name | Type | Description |
|---|---|---|
base | DNA | DNA碱基 |
Returns
对应的字符
ToString
获取序列的字符串表示(用于调试,可能不返回完整序列)
Returns
序列的字符串表示
title
序列的标题/描述
Length
序列的总长度(碱基数)
ReadFromFile(
String, Int32)