Debian Codegraph @

pipelines/fetch/fetchRefSeq.sh

raw symbols SCIP
1 #!/bin/bash
2 set -e
3
4 #Written by Brian Bushnell
5 #Last updated August 7, 2019
6
7 #Fetches and renames RefSeq.
8 #Be sure the taxonomy server is updated first, or run with local taxonomy data!
9 #To use this script outside of NERSC, modify $TAXPATH to point to your directory with the BBTools taxonomy data,
10 #e.g. TAXPATH="/path/to/taxonomy_directory/"
11
12 TAXPATH="auto"
13
14 #Ensure necessary executables are in your path
15 #module load pigz
16
17 #Fetch RefSeq
18 #time wget -nv ftp://ftp.ncbi.nlm.nih.gov/refseq/release/complete/*genomic.fna.gz
19 #The line below requires pigz!
20 wget -q -O - ftp://ftp.ncbi.nlm.nih.gov/refseq/release/complete/*genomic.fna.gz | gi2taxid.sh -Xmx1g in=stdin.fa.gz out=renamed.fa.gz pigz=16 unpigz zl=9 server ow maxbadheaders=5000 badheaders=badHeaders.txt bgzip
21