Plasmids detection#

We will now search for plasmids features in the assembled scaffolds/contigs to detect which ones could have originated from a plasmid.

For this, we will use 2 different tools:

Prepare our computing environment#

We will first run the appropriate srun command to book the computing cores (cpus) on the cluster.

Tip

You need to ask the teacher which partition to use !

srun -p SELECTED_PARTITION --cpus-per-task 2 --pty bash -i

You are now on a computing node, with computing 2 cpus reserved for you. That way, you can run commands interactively.

If you want to exit the srun interactive mode, press CTRL+D or type exit

Practical#

First, you need to identify in your results directory the fasta file corresponding to the unicycler hybrid assembly.

cd results
ls -l

PlasmidFinder#

We will use the PlasmidFinder container that has all tools needed for running PlasmidFinder

module load system/singularity/3.6.0

singularity shell path/to/plasmidfiner_container

mkdir K2_plasmidfinder

plasmidfinder.py -i K2_unicycler_scaffolds.fasta -o K2_plasmidfinder -p /path/to/PF_DB -mp blastn -x

Tip

Ask the teacher for the PlasmidFinder database path and for the PlasmidFinder container path.

Once finished, you can exit the container by typing exit or press CTRL+D

Question

Inspect the output files within the plasmidfinder output directory and comment. How many potential contigs of plasmidic origin were identified ?

Platon#

We will use a second tool for detecting sequences of plasmidic origin: Platon

module load system/singularity/3.6.0

singularity shell path/to/platon_container

platon --db path/to/databases/platon/db/ -t 4 -o K2_unicycler_platon_accu K2_unicycler_scaffolds.fasta

Tip

Ask the teacher for the Platon database path and for the Platon container path.

Question

Inspect the output files within the Platon output directory and comment. Compare with results obtained with PlasmidFinder

Note

You can put the Platon json file in Json Editor online for visualising the hits

Question

Try to run the tool on all other Unicycler assemblies by using a loop