# Accession number AF086833 in Genbank format.
efetch -db=nuccore -format=gb -id=AF086833 > AF086833.gb

# Accession number AF086833 in Fasta format.
efetch -db=nuccore -format=fasta -id=AF086833 > AF086833.fa

# Select a subsequence from the genome.
efetch -db=nuccore -format=fasta -id=AF086833 -seq_start=1000 -seq_stop=1030

# Get the sequencing run information deposited for a project.
esearch  -db sra -query PRJNA257197 | efetch -format runinfo > runinfo.csv

# What is inside of the runinfo file?
cat runinfo.csv | cut -d , -f 1,2,16 | head -3

# Get all genomic sequences deposited for a project.
esearch -db nucleotide -query PRJNA257197 | efetch -format=fasta > genomes.fa

# Get all protein sequences deposited for a project.
esearch -db nucleotide -query PRJNA257197 | efetch -format=fasta > genomes.fa