流式 FASTA 读取器:逐条读取,内存占用恒定(仅当前序列)。读取超大型的fasta文件所需要的一个数据对象
StreamIterator
01 Syntax
SMRUCC.genomics.SequenceModel.FASTA.StreamIterator
02 Methods
03 Properties
| Name | Overloads | Summary |
|---|---|---|
| FileSize | 1 | 文件总大小(字节) |
| BytesRead | 1 | 已读取的字节数 |
| RecordCount | 1 | 已读取的序列数 |
| Progress | 1 | 读取进度百分比 (0~100) |
| DefaultSuffix | 1 | 默认的Fasta文件拓展名列表 |
04 Fields
| Name | Overloads | Summary |
|---|---|---|
| _recordCount | 1 | 已读取的序列数 |
| SOH | 1 |
05 Members
#ctor(
String, Boolean)从指定的文件之中构建一个读取超大型的fasta文件所需要的一个数据对象
Parameters
| Name | Type | Description |
|---|---|---|
path | String | - |
ReadNext
读取下一条 FASTA 记录。
Returns
FastaRecord 或 Nothing(文件结束)
ReadStream
Read all sequence from the fasta file.
Loops(
List(Of String))Loops on each block of data
Parameters
| Name | Type | Description |
|---|---|---|
stream | List(Of String) | - |
Split(
Int32)子集里面的序列元素的数目
Parameters
| Name | Type | Description |
|---|---|---|
size | Int32 | - |
SeqSource(
String, String(), Boolean, Boolean)全部都是使用StreamIterator对象来进行读取的
Parameters
| Name | Type | Description |
|---|---|---|
handle | String | File path or directory.(函数会自动检测所输入的路径的类型为文件夹或者是文件) |
ext | String() | 文件搜索的文件名匹配模式,如果handle是一个文件夹的话 |
FileSize
文件总大小(字节)
BytesRead
已读取的字节数
RecordCount
已读取的序列数
Progress
读取进度百分比 (0~100)
DefaultSuffix
默认的Fasta文件拓展名列表
_recordCount
已读取的序列数
SOH
Dispose()