Skip to content

ursm/w3const_base

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

w3const_base

Common tools for w3const project

How to build the container

cd ~
git clone https://github.com/ddbj/w3const_base.git
sudo singularity build constbase.sif ~/w3const_base/Singularity

The container contains the following scripts and binaries.

getblastdb_ncbi.sh

Download blast/db data from NCBI by using aspera connect and decompress to the blastdb directory.

Usage:

singularity exec /home/w3const/work-kosuge/constbase.sif getblastdb_ncbi.sh

Variables:

  • DBNAME ... blast db to be downloaded.
  • MAXTRY ... Retry download until the times, when a downloaded file is broken.
  • BASE ... Base directory for running the script.
  • DBSRC ... URL of NCBI data resource.
  • DATLOC ... Usually, the latest tar.gz archives from NCBI are placed. When the downloading was failed, the tar.gz files are copied from DATLOCF directory.
  • DATLOCF ... Former tar.gz archives from NCBI are placed.
  • JSONLOC ... Manifest json files from NCBI. Each file are downloaded based on the information in the json file.
  • BDB ... A directory where decompressed data are placed.

sendgmail_w3const.py

Sends email by using the google account. You can specify a sender address if you have set the other email address(es) (e.g. sender alias) on the account.

Usage:

singularity exec /home/w3const/work-kosuge/constbase.sif sendgmail_w3const.py [-h] --sj subject --to email --body file [--cc email] [--bcc email] [--att file] [--sender address]

You must prepare credential and white list files in advance.

  1. Create a credential file to run the script.
mkdir -m 700 ~/.sendgmail_w3const
echo 'GmailAccount:ApplicationPassword' > ~/.sendgmail_w3const/account
chmod 600 ~/.sendgmail_w3const/account
  1. Create a whitelist
touch ~/.sendgmail_w3const/whitelist; chmod 600 ~/.sendgmail_w3const/whitelist
Write an email address to the whitelist in each line.
  1. Example
cd /home/w3const
singularity exec /home/w3const/work-kosuge/constbase.sif sendgmail_w3const.py --sj "てすとです" --to addr1,addr2 --body /home/w3const/work-kosuge/emailbody.txt

makeUniVec_blastdb.sh

Download the UniVec fasta from NCBI and replace the local file with newwer ones. The script also prepares blast databases whose names are UniVec and UniVec_Core.

jParser & transChecker

https://ddbj.nig.ac.jp/public/ddbj-cib/MSS/

blast & matrix

ftp:https://ftp.ncbi.nih.gov/blast/executables/blast+/ ftp:https://ftp.ncbi.nih.gov/blast/matrices

SRA Toolkit

Latest version of https://ftp-trace.ncbi.nlm.nih.gov/sra/sdk/

Aspera Connect

https://www.ibm.com/aspera/connect/

Before use

Edit the directory name of BASE (line 8). It is used for base directory. You need to create "UniVec" directory under the base directory. The blast databases for UniVec and UniVec_Core are created to the directory designated by BLASTDIR (line 12).

Usage:

singularity exec /home/w3const/work-kosuge/constbase.sif makeUniVec_blastdb.sh

About

Common tools for w3const project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 52.9%
  • Python 32.1%
  • Singularity 15.0%