GetPDB

Crates.ioGetPDB
lib.rsGetPDB
version1.0.1
sourcesrc
created_at2019-09-18 15:44:30.042598
updated_at2019-09-26 13:42:33.355663
descriptionDownload Protein files from rcsb.org
homepage
repositoryhttps://gitlab.com/philippe_noel/pdbget
max_upload_size
id165769
size98,232
Philippe (PhilippeNoel1)

documentation

README

PDBget

Crates.io license

CLI program to download files from rcsb.org or PDBe

Installation

Using Cargo

cargo install GetPDB
pdbget -v

From sources

git clone https://gitlab.com/philippe_noel/pdbget.git
cd pdbget
cargo install --path
pdbget --help

Usage

Get Protein files 1.0.1
Philippe Noel
Download Protein files on rcsb.org or pdbe

USAGE:
    pdbget [OPTIONS] <PDBs>...

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -o <Output>         Output folder where to store files [default: ./]
    -s <Server>         Server name where to download pdb files. 'rcsb', 'pdbe'.
                        Format for rcsb: 'fasta', 'pdb', 'pdbgz', 'cif', 'cifgz', 'xmlgz'.
                        Format for pdbe: 'fasta', 'pdb', 'pdbgz', 'cif', 'xml'.
                         [default: rcsb]
    -t <UriType>        File type to download. 'pdb', 'pdbgz', 'cif', 'cifgz', 'fasta', 'xml', 'xmlgz' [default: PDB]

ARGS:
    <PDBs>...    PDB identifiers

With the -s option, you can specify the server where download files. Possible server are:

  • rcsb : RCSB.org
  • pdbe : PDBe Note that all formats are not available for all server. Check the table.
Format RCSB PDBe
FASTA :heavy_check_mark: :heavy_check_mark:
PDB :heavy_check_mark: :heavy_check_mark:
PDBGZ :heavy_check_mark: :heavy_check_mark:
CIF :heavy_check_mark: :heavy_check_mark:
CIFGZ :heavy_check_mark: :x:
XML :x: :heavy_check_mark:
XMLGZ :heavy_check_mark: :x:

With the -t option, you can specify the output file format. Possible format are:

  • pdb : PDB format
  • pdbgz : GZ compression of a PDB file
  • cif : CIF format
  • cifgz : GZ compression of a CIF file
  • fasta : FASTA sequence(s) of the protein
  • xml : GZ compression of an XML file (uncompress XML are not provide on rcsb.org)
Commit count: 48

cargo fmt