Crates.io | genomers |
lib.rs | genomers |
version | 0.1.2 |
source | src |
created_at | 2024-09-15 22:30:23.66003 |
updated_at | 2024-10-16 15:47:43.04438 |
description | Package to download NCBI genome data and metadata |
homepage | |
repository | https://github.com/matteobolner/genomers |
max_upload_size | |
id | 1375839 |
size | 49,659 |
genomers is a rust package for downloading genome assembly data and metadata from NCBI
v0.1.5 Added GFF genome annotation to download options
Download the assembly report and assembly fasta sequence
The binaries can be downloaded from the 'release' section of the repository (https://github.com/matteobolner/genomers/releases/download/{release}) or with
wget https://github.com/matteobolner/genomers/releases/download/first-release/genomers
I wanted to have an easy way to download genome assembly data and metadata from NCBI, and since I'm learning rust I decided to try doing it in rust.
Two parameters are required:
the assembly accession and assembly name.
running "genomers -h" will print all the necessary information.
Example:
# download the assembly report for the E. coli genome
./genomers -a GCA_000005845.2 -n ASM584v2 -r > report.txt
# now the full genome seqeuence
./genomers -a GCA_000005845.2 -n ASM584v2 -g > genome.fasta.gz
The output is directed to stdout and can be piped:
./genomers -a GCA_000005845.2 -n ASM584v2 -r | grep "Chromosome"
# unzip the file
./genomers -a GCA_000005845.2 -n ASM584v2 -g | gunzip > genome.fasta