Genbank Class
Genbank
Genbank Parser Class
PARAMETER | DESCRIPTION |
---|---|
gbk_source
|
Genbank file or source
(
TYPE:
|
name
|
name (If None,
TYPE:
|
calc_genome_gc_content
Calculate genome GC content
PARAMETER | DESCRIPTION |
---|---|
seq
|
Sequence for GC content calculation (Default:
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
gc_content
|
GC content
TYPE:
|
calc_gc_skew
calc_gc_skew(
window_size: int | None = None,
step_size: int | None = None,
*,
seq: str | None = None
) -> tuple[NDArray[np.int64], NDArray[np.float64]]
Calculate GC skew in sliding window
PARAMETER | DESCRIPTION |
---|---|
window_size
|
Window size (Default:
TYPE:
|
step_size
|
Step size (Default:
TYPE:
|
seq
|
Sequence for GCskew calculation (Default:
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
pos_list
|
Position list
TYPE:
|
gc_skew_list
|
GC skew list
TYPE:
|
calc_gc_content
calc_gc_content(
window_size: int | None = None,
step_size: int | None = None,
*,
seq: str | None = None
) -> tuple[NDArray[np.int64], NDArray[np.float64]]
Calculate GC content in sliding window
PARAMETER | DESCRIPTION |
---|---|
window_size
|
Window size (Default:
TYPE:
|
step_size
|
Step size (Default:
TYPE:
|
seq
|
Sequence for GC content calculation (Default:
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
pos_list
|
Position list
TYPE:
|
gc_content_list
|
GC content list
TYPE:
|
get_seqid2seq
Get seqid & complete/contig/scaffold genome sequence dict
RETURNS | DESCRIPTION |
---|---|
seqid2seq
|
seqid & genome sequence dict
TYPE:
|
get_seqid2size
Get seqid & complete/contig/scaffold genome size dict
RETURNS | DESCRIPTION |
---|---|
seqid2size
|
seqid & genome size dict
TYPE:
|
get_seqid2features
get_seqid2features(
feature_type: str | list[str] | None = "CDS", target_strand: int | None = None
) -> dict[str, list[SeqFeature]]
Get seqid & features in target seqid genome dict
PARAMETER | DESCRIPTION |
---|---|
feature_type
|
Feature type (
TYPE:
|
target_strand
|
Extract target strand. If None, extract regardless of strand.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
seqid2features
|
seqid & features dict
TYPE:
|
extract_features
extract_features(
feature_type: str | list[str] | None = "CDS",
*,
target_strand: int | None = None,
target_range: tuple[int, int] | None = None
) -> list[SeqFeature]
Extract features (only first record)
PARAMETER | DESCRIPTION |
---|---|
feature_type
|
Feature type (
TYPE:
|
target_strand
|
Extract target strand. If None, extract regardless of strand.
TYPE:
|
target_range
|
Extract target range. If None, extract regardless of range.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
features
|
Extracted features
TYPE:
|
write_cds_fasta
Write CDS fasta file
PARAMETER | DESCRIPTION |
---|---|
outfile
|
Output CDS fasta file
TYPE:
|