Biowulf at the NIH
RSS Feed
FusionMap on Biowulf

FusionMap is an efficient fusion aligner which aligns reads spanning fusion junctions directly to the genome without prior knowledge of potential fusion regions. It detects and characterizes fusion junctions at base-pair resolution. FusionMap can be applied to detect fusion junctions in both single- and paired-end dataset from either gDNA-Seq or RNA-Seq studies.

 

Programs Location

/usr/local/fusionmap/bin

 

Important Note

The environment variable(s) need to be set properly first. The easiest way to do this is by using the modules commands, 'module load fusionmap' , as in the example below.

Frequently used module commands:

$ module load AppName
$ module load AppName/AppVersion
$ module unload AppName
$ module avail
$ module avail AppName
$ module list
$ module switch AppName AppName/AppVersion
$ module display AppName
If you use this application very often, you can set the environmental variables in your /home/UserID/.bashrc or /home/userID/.cshrc file so that it will be done automatically when you login and you don't need to set the environmental variable(s) everytime.

For bash users:

export PATH=/usr/local/fusionmap/bin:/usr/local/mono/bin:$PATH

For tcsh/csh users:

set path=(/usr/local/fusionmap/bin /usr/local/mono/bin ${path})

Submitting a single batch job

1. Create a script file. The file will contain the lines similar to the lines below. Modify the path of program location before running.

#!/bin/bash
# This file is YourOwnFileName
#
#PBS -N yourownfilename
#PBS -m be
#PBS -k oe

module load fusionmap
cd /data/user/somewhereWithInputFile
fusionmap command 1
fusionmap command 2
....
....

2. Submit the script using the 'qsub' command on Biowulf, e.g. Note, user is recommend to run benchmarks to determine what kind of node is suitable for his/her jobs.

[user@biowulf]$ qsub -l nodes=1 /data/username/theScriptFileAbove

Useful commands:

freen: see http://biowulf.nih.gov/user_guide.html#freen

qstat: search for 'qstat' on http://biowulf.nih.gov/user_guide.html for it's usage.

jobload: search for 'jobload' on http://biowulf.nih.gov/user_guide.html for it's usage.

 

Submitting a swarm of jobs

Using the 'swarm' utility, one can submit many jobs to the cluster to run concurrently.

Set up a swarm command file (eg /data/username/cmdfile). Here is a sample file:

module load fusionmap; cd /data/user/run1/; fusionmap command 1; fusionmap command 2

module load fusionmap; cd /data/user/run2/; fusionmap command 1; fusionmap command 2

........

........

module load fusionmap; cd /data/user/run10/; fusionmap command 1; fusionmap command 2

 

There are one flag of swarm that's required '-f' and two other flags of swarm user most possibly needs to specify when submit a swarm job: '-t' and '-g'.

-f: the swarm command file name above (required)
-t: number of processors per node to use for each line of the commands in the swarm file above.(optional)
-g: GB of memory needed for each line of the commands in the swarm file above.(optional)

By default, each line of the commands above will be executed on '1' processor core of a node and uses 1GB of memory. If this is not what you want, you will need to specify '-t' and '-g' flags when you submit the job on biowulf.

Say if each line of the commands above also will need to use 10gb of memory instead of the default 1gb of memory, make sure swarm understands this by including '-g 10' flag:

[user@biowulf]$ swarm -g 10 -f cmdfile

For more information regarding running swarm, see swarm.html

 

Running an interactive job

User may need to run jobs interactively sometimes. Such jobs should not be run on the Biowulf login node. Instead allocate an interactive node as described below, and run the interactive job there.

[user@biowulf] $ qsub -I -l nodes=1
qsub: waiting for job 2236960.biobos to start
qsub: job 2236960.biobos ready

[user@p4]$ cd /data/user/myruns
[user@p4]$ module load fusionmap
[user@p4]$ cd /data/userID/fusionmap/run1
[user@p4]$ fusionmap command 1
[user@p4]$ fusionmap command 2
[user@p4]$ ...........
[user@p4] exit
qsub: job 2236960.biobos completed
[user@biowulf]$

User may add property of node in the qsub command to request specific interactive node. For example, if you need a node with 24gb of memory to run job interactively, do this:

[user@biowulf]$ qsub -I -l nodes=1:g24:c16

 

Documentation

http://www.omicsoft.com/fusionmap/