Understanding Data Requirements

Background

This exercise's goal is to learn to think critically about an application's data needs, especially before submitting a large batch of jobs or using tools for delivering large data to jobs. In this exercise we will attempt to understand the input and output of the bioinformatics application BLAST, which you used yesterday in Exercise 1.2.

Setup

Copy the blast executables:

%UCL_PROMPT_SHORT% <strong>wget http://proxy.chtc.wisc.edu/SQUID/osgschool17/ncbi-blast-2.6.0+-x64-linux.tar.gz</strong>
%UCL_PROMPT_SHORT% <strong>tar -xzf ncbi-blast-2.6.0+-x64-linux.tar.gz</strong>

Copy the Input Files

To run BLAST, we need an input file and reference database. For this example, we'll use the "pdbaa" database, which contains sequences for the protein structure from the Protein Data Bank. For our input file, we'll use an abbreviated fasta file with mouse genome information.

  1. Download these files to your current directory: \
%UCL_PROMPT_SHORT% <strong>wget http://proxy.chtc.wisc.edu/SQUID/osgschool17/pdbaa.tar.gz</strong>
%UCL_PROMPT_SHORT% <strong>wget http://proxy.chtc.wisc.edu/SQUID/osgschool17/mouse.fa</strong>
  1. Untar the pdbaa database: \
%UCL_PROMPT_SHORT% <strong>tar -xzf pdbaa.tar.gz</strong>

Understanding blast

Remember that blastx is executed in a command like the following:

%UCL_PROMPT_SHORT% <strong>blastx -db %RED%database_rootname%ENDCOLOR% -query %RED%input_file%ENDCOLOR% -out %RED%results_file%ENDCOLOR%</strong>

In the above, the input_file is a file containing a number of genetic sequences, and the database that these are compared against is made up of several files that begin with the same root name (we previously used the "pdbaa" database, whose files all begin with pdbaa). The output from this analysis will be printed to a results file that is also indicated in the command.

Adding up data needs

Looking at the files from the blastx jobs you ran yesterday, add up the amount of data that was needed for running the job. (If you deleted any of the files from yesterday, just resubmit the job before proceeding.) Here are the commands that will be most useful to you:

How to see the size of a specific file:

 [email protected] $ ls -lh %RED%file 

How to see the size of all files in the current directory:

 [email protected] $ ls -lh 

How to determine the total amount of data in the current directory:

 [email protected] $ du -sh %RED%directory 

Input requirements

Looking at yesterday's exercise, total up the amount of data in all of the files necessary to run the blastx job (which will include the executable, itself). Write down this number. Also take note of how much total data in in the pdbaa directory.

Output requirements

The output that we care about from blastx is saved in the file whose name is indicated after the -out argument to blastx. However, remember that HTCondor also creates the error, output, and log files, which you'll need to add up, too. Are there any other files? Total all of these together, as well.

Talk about this as a group!

Once you have completed the above tasks, we'll talk about the totals as a group.

Up next!

Next you will create a HTCondor submit script to transfer the Blast input files in order to run Blast on a worker nodes.

Next Exercise