PDB之批量并行下载PDB文件

在RCSB PDB官网提供了批量下载PDB文件的脚本。(该脚本需要安装curl工具,可以参考教程进行安装)

但是由于在下载时,只能一个一个PDB文件进行下载,而无法并行下载,因此对该脚本进行了一些修改,使其可以并行处理,下载速度更快。

#!/bin/bash

# Script to download files from RCSB http file download services with parallel support.
# Use the -h switch to get help on usage.

if ! command -v curl &> /dev/null
then
    echo "'curl' could not be found. You need to install 'curl' for this script to work."
    exit 1
fi

PROGNAME=$0
BASE_URL="https://files.rcsb.org/download"

usage() {
  cat << EOF >&2
Usage: $PROGNAME -f  [-o ] [-c] [-p]

 -f : the input file containing a co

你可能感兴趣的:(蛋白质结构,linux,pdb)