Skip to content

Commit

Permalink
fixed download-ncbi-genomes script
Browse files Browse the repository at this point in the history
ignoring 'na' ftp paths
  • Loading branch information
Funatiq committed Dec 8, 2021
1 parent af37826 commit e1a3b6f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions download-ncbi-genomes
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ function download_specific_lib {
if [ -e "assembly_summary.txt" ]; then

if [ $FILTER -ge 0 ]; then
#only complete genomes
awk -F "\t" '$12=="Complete Genome" && $11=="latest"{print $20}' assembly_summary.txt > ftpdirpaths
#only complete genomes with valid ftp paths
awk -F "\t" '$12=="Complete Genome" && $11=="latest" && $20!="na"{print $20}' assembly_summary.txt > ftpdirpaths
fi
if [ $FILTER -ge 1 ]; then
awk -F "\t" '$11=="latest"{print $20}' assembly_summary.txt > ftpdirpaths
Expand All @@ -62,13 +62,13 @@ function download_specific_lib {
rm -f ftpfilepaths*

touch complete.flag

echo "complete."

else
echo "ERROR: Couldn't find assembly_summary text file!"
fi
else
else
echo "Download of $DBASE already complete."
fi

Expand Down

0 comments on commit e1a3b6f

Please sign in to comment.