| 1 | [[PageOutline]] |
| 2 | |
| 3 | = Application Name = |
| 4 | |
| 5 | Blast Binary |
| 6 | |
| 7 | = Summary = |
| 8 | |
| 9 | * '''Name''': {{{Blast Binary}}} |
| 10 | * '''Contact Person''': {{{support-compss@bsc.es}}} |
| 11 | * '''Access Level''': {{{public}}} |
| 12 | * '''License Agreement''': {{{Apache2}}} |
| 13 | * '''Platform''': {{{COMPSs}}} |
| 14 | * '''Repository''': [[https://compss.bsc.es/svn/bar/apps/java/blastbinary|Blast Binary]] |
| 15 | |
| 16 | |
| 17 | == Description == |
| 18 | BLAST (Basic Local Alignment Search Tool) is an algorithm for comparing primary biological sequence information, such as the amino-acid sequences of different proteins or nucleotides of DNA sequences. BLAST enables a researcher to compare a query sequence with a library or database of sequences, and identify sequences that resemble the query sequence above a certain threshold. |
| 19 | |
| 20 | The COMPSs application contains three main blocks: |
| 21 | |
| 22 | – Split: the query sequences file is splitted in N fragments. |
| 23 | |
| 24 | – Alignment: each sequence fragment is compared against the database by the blast binary. |
| 25 | |
| 26 | - Assembly: assembly process combines all intermediate files into a single result file. |
| 27 | |
| 28 | |
| 29 | == Versions == |
| 30 | BINARY VERSION |
| 31 | |
| 32 | == Execution instructions == |
| 33 | Usage: |
| 34 | export BLAST_BINARY=<blast_binary> |
| 35 | runcompss blast.Blast <debug> <database> <sequences> <#fragments> <tmpDir> <outputFile> <extra_cmd_args> |
| 36 | where: |
| 37 | * - debug: Set the debug mode on |
| 38 | * - database: Database Name |
| 39 | * - sequences: Input sequences path |
| 40 | * - #fragments: Fragments number |
| 41 | * - tmpdir: Temporary directory |
| 42 | * - output: Output file |
| 43 | * - cmd_args: Command line Arguments of the Blast binary |
| 44 | |
| 45 | == Execution Example == |
| 46 | export BLAST_BINARY=/home/user/workspace/blast/binary/blastall |
| 47 | runcompss blast.Blast true /sharedDisk/blast/databases/swissprot/swissprot /sharedDisk/blast/sequences/sargasso_test.fasta 4 /tmp/ /home/user/out.txt |
| 48 | |
| 49 | |
| 50 | == Build == |
| 51 | === Option 1: Native java === |
| 52 | cd ~/workspace_java/blastbinary/; javac src/main/java/blastbinary/*.java |
| 53 | cd src/main/java/; jar cf blastbinary.jar blast/ |
| 54 | cd ../../../; mv src/main/java/blastbinary.jar jar/ |
| 55 | |
| 56 | === Option 2: Maven === |
| 57 | cd ~/workspace_java/blastbinary/ |
| 58 | mvn clean package |