This guide provides instructions for running RNA-seq analyses on the IFB (Institut Français de Bioinformatique) cluster. It covers cluster connection, data transfer, analysis execution, and results retrieval.
- An IFB account (request at https://my.cluster.france-bioinformatique.fr/)
- Basic command line knowledge
- SSH client installed on your local machine
- Your IFB username and password
The paths used in this guide are examples and will need to be adapted based on your IFB account organization. Common base directories on IFB include:
~/workspace/- General workspace directory~/work/- Work directory with larger storage allocation~/projects/- Project-specific directory~/ondemand/data/sys/dashboard/batch_connect/sys/jupyter/core/- Jupyter-related workspace
Before running any scripts, make sure to:
- Check your IFB account structure and available directories
- Modify all paths in the scripts to match your account organization
- Ensure you have sufficient storage space in your chosen directory
Example of path customization in scripts:
# Original path
WORK_DIR="~/workspace/project_name"
# Modify according to your IFB organization, e.g.:
WORK_DIR="~/work/project_name" # If using work directory
# or
WORK_DIR="~/projects/project_name" # If using projects directory
# or
WORK_DIR="~/ondemand/data/sys/dashboard/batch_connect/sys/jupyter/core/project_name" # If using Jupyter workspace- Connect to the cluster:
Replace USERNAME with your IFB username.
- Start a tmux session (for disconnect protection):
# Create a new tmux session
tmux new -s rnaseq
# If disconnected, reattach to your session with:
tmux attach -t rnaseq- On your local machine, organize and compress your data:
# Create a project directory
mkdir -p project_name/{data,genome,scripts,status}
# Organize your files into appropriate directories
# - Put raw data in data/
# - Put reference files in genome/
# - Put analysis scripts in scripts/
# Create an archive
tar czf project_data.tar.gz project_name/- Transfer files to the cluster:
# Transfer the archive
scp project_data.tar.gz [email protected]:~/workspace/
# For large raw data files, use compression:
scp -C data/*.fastq.gz [email protected]:~/workspace/project_name/data/- Set up your working directory:
# Go to your workspace
cd ~/workspace
# Create project directory structure
mkdir -p project_name/{data,genome,scripts,status,results}
cd project_name
# Extract your files (if using archive)
tar xzf ../project_data.tar.gz
# Make scripts executable
chmod +x scripts/*.sh- Verify your setup:
# Check directory structure
ls -R
# Check available space
df -h .- Update paths in your scripts:
# Set working directory
WORK_DIR="$PWD"
# Update paths in your scripts accordingly- Submit genome preparation job (if needed):
# Submit with appropriate resources
sbatch scripts/prepare_genome.sh
# Monitor progress
watch -n 30 'squeue -u $USER' # Press Ctrl-C to exit
tail -f prepare_genome_*.out # Press Ctrl-C to exit- Submit analysis job:
# Check genome preparation completion (if applicable)
if [ -f "genome/preparation_complete" ]; then
sbatch scripts/run_analysis.sh
else
echo "Genome preparation not complete"
fi- Check job status:
# List your jobs
squeue -u $USER
# View job details
scontrol show job JOB_ID
# Check resource usage
sstat -j JOB_ID- Monitor logs:
# In a separate tmux pane (Ctrl-b then ")
tail -f job_name_*.out
tail -f job_name_*.errFrom your local machine:
cd /path/to/local/project
scp -r [email protected]:~/workspace/project_name/results/ ./- Request appropriate resources in your SLURM scripts:
#SBATCH --cpus-per-task=8 # Number of CPUs
#SBATCH --mem=32G # Memory
#SBATCH --time=24:00:00 # Time limit- Maintain a clear directory structure:
genome/: Reference files and indicesdata/: Raw datascripts/: Analysis scriptsresults/: Output filesstatus/: Checkpoint files
- Essential tmux shortcuts:
Ctrl-b d: Detach sessionCtrl-b ": Split horizontallyCtrl-b %: Split verticallyCtrl-b arrows: Navigate between panesCtrl-b c: Create new windowCtrl-b n: Next windowCtrl-b p: Previous window
- If disconnected:
- Reconnect to the cluster
- Reattach to tmux:
tmux attach -t rnaseq - Your jobs continue running regardless of connection status
- Use checkpoints in long-running jobs
- Monitor resource usage
- Keep logs organized
- Use appropriate job time limits
- Clean up unnecessary files regularly
- IFB Documentation: https://ifb-elixirfr.gitlab.io/cluster/doc/
- Cluster Status: https://www.france-bioinformatique.fr/cluster-status/
- Support: https://support.cluster.france-bioinformatique.fr/
- tmux Guide: https://tmuxcheatsheet.com/
- SLURM Documentation: https://slurm.schedmd.com/documentation.html
-
Connection Problems
- Check your internet connection
- Verify your IFB credentials
- Ensure you're using the correct hostname
-
Job Failures
- Check error logs
- Verify resource requests
- Ensure input files exist
- Check disk space
-
Data Transfer Issues
- Use
-Cflag for compression - Try smaller chunks
- Check disk space on both ends
- Use
- Contact IFB support
- Check cluster documentation
- Review job logs
- Use the IFB user forum