Class constructor - build NCBI Genome object
Class constructor - build NCBI Genome object
fasta_file
A path to FASTA file. fasta files.
genome_name
A genome name.
db
NCBI database: "refseq" or "genbank"
seq
A chromosome-named list of sequences.
seq_len
A chromosome-named vector of sequence length.
load_limit
Maximum chromosome sequences loaded.
mask
Genome mask status: "hard", "soft", or "none".
use_UCSC_name
Use UCSC style chromosome name? Default to FALSE.
headers
A chromosome-named vector of headers.
avail_seqs
Available chromosome sequences in the fasta file.
asm
Assembly summary.
new()
Create a new NCBI Genome class
NCBI_Genome$new(
genome.name,
db,
fasta.file,
asm,
mask,
use.UCSC.name,
load.limit
)
genome.name
A genome name. NCBI genome is included with kmeRtone.
db
NCBI database: "refseq" or "genbank".
fasta.file
A path to the NCBI-style fasta files. This is for user's own FASTA file.
asm
NCBI assembly summary.
mask
Genome mask status: "hard", "soft", or "none". Default is "none".
use.UCSC.name
Use UCSC style chromosome name? Default to FALSE.
load.limit
Maximum chromosome sequences loaded. Default is 1.
A new NCBI Genome
object.
[()
Calling chromosome sequence by loading on demand. Maximum load is determine by load_limit field.
NCBI_Genome$[(chr.names, reload = FALSE)
chr.names
Chromosome name. It can be a vector of chromosomes.
reload
Reload the sequence from the fasta_file. Default is FALSE.
A single or list of sequence of requested chromosome.
Message of Genome
object summary.
get_assembly_report()
Get NCBI assembly report for the genome.
NCBI_Genome$get_assembly_report()
Message of Genome
object summary.
clone()
The objects of this class are cloneable with this method.
NCBI_Genome$clone(deep = FALSE)
deep
Whether to make a deep clone.
NCBI FASTA file contain nucleotide accession number at the headers, followed by some information about the sequence whether they are chromosome, plasmid, or mictochondria, their assembly status, etc.