########################################################## # Generic commands ########################################################## # On local machine in the ~/ directory create file structure MKDIR formation cd formation MKDIR pangenomics cd pangenomics MKDIR data MKDIR bandage MKDIR panabyss cd data # Get the MC gfa graph. There are two options: either on the cluster or on the training plateform. # 1. From the cluster: in the following commands replace login by your own login scp login@genobioinfo.toulouse.inrae.fr:~/work/pangenomics/graph.full.gfa ./ # 2. Or get the data directly from the formation page : wget https://web-genobioinfo.toulouse.inrae.fr/~formation/22_Pangenomics/data/solutions/graph.full.gfa ########################################################## # Bandage installation ########################################################## #Get bandage-NG tool: #Go into ~/formation/pangenomics/bandage wget https://github.com/asl/BandageNG/releases/download/v2026.9.1/BandageNG-Linux-17665e2.AppImage chmod +x BandageNG-Linux-17665e2.AppImage #Launch bandage-NG: ./BandageNG-Linux-17665e2.AppImage ########################################################## # Region extraction ########################################################## # Go on the cluster and log on a node: srun -c 4 --mem 10G --time=02:00:00 --pty bash module purge module load bioinfo/vg/1.70.0 #Go in the directory where stands the gfa file #Else go in a working directory and get the gfa from the formation page: wget https://web-genobioinfo.toulouse.inrae.fr/~formation/22_Pangenomics/data/solutions/graph.full.gfa #Get paths from MC graph vg paths -x graph.full.gfa -E | sort # Extract region on TN09#1#chr05 from 2758489 to 2762346 vg find -x graph.full.gfa -p TN09#1#chr05#0:2758489-2762346 -E > MC.TN09_chr_5_2758489-2762346.pg # convert in gfa for visualisation with bandage (-f option for gfa output, -W => P lines in the output) vg convert MC.TN09_chr_5_2758489-2762346.pg -f -W > MC.TN09_chr_5_2758489-2762346.gfa # On the local machine, get the extracted region: cd ~/formation/pangenomics/data #replace login by your own login: scp user@genobioinfo.toulouse.inrae.fr:/home/user/work/formation/pangenomic/data/MC.TN09_chr_5_2758489-2762346.* . ########################################################## # PanAbyss requirements ########################################################## #1) Install miniconda #Go into ~/formation wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh chmod +x Miniconda3-latest-Linux-x86_64.sh ./Miniconda3-latest-Linux-x86_64.sh #Launch a new terminal or « source ~/.bashrc » #Check install : conda –-version #Accept Terms of service conda tos accept –-override-channels –-channel https://repo.anaconda.com/pkgs/main conda tos accept –-override-channels –-channel https://repo.anaconda.com/pkgs/r #2) Install docker sudo apt update sudo apt install ca-certificates curl -y sudo install -m 0755 -d /etc/apt/keyrings sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc sudo chmod a+r /etc/apt/keyrings/docker.asc echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null sudo apt update sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin #Use docker without sudo sudo usermod -aG docker $USER newgrp docker getent group docker #Check if user has been added to docker group => getent group docker sudo systemctl enable --now docker #Check install docker run hello-world docker compose version ########################################################## # PanAbyss installation ########################################################## #Get PanAbyss tool: cd ~/formation/pangenomics/panabyss wget -qO- https://api.github.com/repos/Pange31/PanAbyss/releases/latest \ | grep "browser_download_url" \ | grep -i ".zip" \ | cut -d '"' -f 4 \ | xargs wget -O latest.zip unzip latest.zip chmod +x launch.sh # Put GFA file in the PanAbyss GFA directory cd /data/gfa wget https://web-genobioinfo.toulouse.inrae.fr/~formation/22_Pangenomics/data/solutions/graph.full.gfa # Get annotation file cd ../annotations wget https://web-genobioinfo.toulouse.inrae.fr/~formation/22_Pangenomics/data/input/IPO323.chr_5.genes.gff #(or get it from EMBL: wget https://ftp.ebi.ac.uk/pub/ensemblorganisms/GCA/000/219/625/1/community/2021_06/geneset/genes.gff3.gz and gzip -d genes.gff3.gz) #Launch PanAbyss: ./launch.sh #Go on https://localhost:8050 #Select « DB management » tab #Set the container name to « zt » #Select the gfa file #Click on « Create New DB » button and then confirm creation (then wait ~1 min). #Select the annotation file « genes.gff3 » and select « IPO323_1 » as associated genome. #Click on « Load » button and wait ~30 s