deepbiop.fq¶
Classes¶
A struct to store the prediction result. |
|
Functions¶
|
|
|
|
|
|
|
|
|
Convert ASCII quality to Phred score for Phred+33 encoding. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Module Contents¶
- class deepbiop.fq.EncoderOption¶
- class deepbiop.fq.FastqDataset¶
-
- __iter__()¶
- Return type:
- static from_file(file_path, chunk_size)¶
- Parameters:
- Return type:
- get_stats()¶
- Return type:
Any
- get_records(start, end)¶
- Parameters:
- Return type:
- get_records_indexed(start, end)¶
- Parameters:
- Return type:
- get_records_sequential(start, end)¶
- Parameters:
- Return type:
- class deepbiop.fq.FastqRecord¶
- class deepbiop.fq.ParquetEncoder¶
- class deepbiop.fq.Predict¶
A struct to store the prediction result.
- smooth_prediction(window_size)¶
Get the smooth prediction region.
- smooth_label(window_size)¶
Get the smooth label.
- smooth_and_select_intervals(smooth_window_size, min_interval_size, append_interval_number)¶
Smooth and select intervals.
- show_info(smooth_interval, text_width=None)¶
Show the information of the prediction.
- __getstate__()¶
- Return type:
Any
- __setstate__(state)¶
- Parameters:
state (Any)
- Return type:
None
- class deepbiop.fq.RecordData¶
- deepbiop.fq.convert_multiple_fqs_to_one_fq(paths, result_path, parallel)¶
- Parameters:
paths (Sequence[str | os.PathLike | pathlib.Path])
result_path (str | os.PathLike | pathlib.Path)
parallel (bool)
- Return type:
None
- deepbiop.fq.encode_fq_path_to_parquet(fq_path, bases, qual_offset, result_path=None)¶
- Parameters:
fq_path (str | os.PathLike | pathlib.Path)
bases (str)
qual_offset (int)
result_path (str | os.PathLike | pathlib.Path | None)
- Return type:
None
- deepbiop.fq.encode_fq_path_to_parquet_chunk(fq_path, chunk_size, parallel, bases, qual_offset)¶
- Parameters:
fq_path (str | os.PathLike | pathlib.Path)
chunk_size (int)
parallel (bool)
bases (str)
qual_offset (int)
- Return type:
None
- deepbiop.fq.encode_fq_paths_to_parquet(fq_path, bases, qual_offset)¶
- Parameters:
fq_path (Sequence[str | os.PathLike | pathlib.Path])
bases (str)
qual_offset (int)
- Return type:
None
- deepbiop.fq.encode_qual(qual, qual_offset)¶
Convert ASCII quality to Phred score for Phred+33 encoding.
- deepbiop.fq.fastq_to_fasta(fastq_path, fasta_path)¶
- Parameters:
fastq_path (str | os.PathLike | pathlib.Path)
fasta_path (str | os.PathLike | pathlib.Path)
- Return type:
None
- deepbiop.fq.get_label_region(labels)¶
- deepbiop.fq.load_predicts_from_batch_pt(pt_path, ignore_label, id_table)¶
- Parameters:
pt_path (str | os.PathLike | pathlib.Path)
ignore_label (int)
- Return type:
- deepbiop.fq.load_predicts_from_batch_pts(pt_path, ignore_label, id_table, max_predicts=None)¶
- Parameters:
pt_path (str | os.PathLike | pathlib.Path)
ignore_label (int)
max_predicts (int | None)
- Return type:
- deepbiop.fq.select_record_from_fq(selected_reads, fq, output)¶
- Parameters:
selected_reads (Sequence[str])
fq (str | os.PathLike | pathlib.Path)
output (str | os.PathLike | pathlib.Path)
- Return type:
None
- deepbiop.fq.select_record_from_fq_by_random(fq, number, output)¶
- Parameters:
fq (str | os.PathLike | pathlib.Path)
number (int)
output (str | os.PathLike | pathlib.Path)
- Return type:
None
- deepbiop.fq.write_fq(records_data, file_path=None)¶
- Parameters:
records_data (Sequence[RecordData])
file_path (str | os.PathLike | pathlib.Path | None)
- Return type:
None
- deepbiop.fq.write_fq_parallel(records_data, file_path, threads)¶
- Parameters:
records_data (Sequence[RecordData])
file_path (str | os.PathLike | pathlib.Path)
threads (int)
- Return type:
None