This is my Master Thesis project at the University of Granada (UGR).
Simple programs to parallelize the analysis of miRNA in human samples with sRNAtoolbox (https://bioinfo2.ugr.es/srnatoolbox/).
Feel free to parallelize your own projects.
- Download the miRPIPE folder from https://github.com/marromesc/miRPIPE/tree/master/miRPIPE
- Move it to your opt folder. mv miRPIPE.zip /home/usr/opt/miRPIPE.zip
- Unzip unzip miRPIPE.zip
- Run one by one for each script: chmod +x script_name.sh
1. batch_prepro_bench.sh
- Creating working directory with these folders:
- data for the downloaded samples
- logs for the log files that you can check if there is any error
- batch for the batch files in .bat format
- results for the results
- Creating batch file for sRNAbench analysis.
USAGE:
batch_prepro_bench.sh /home/user/working_directory /path/to/SraRunTable.txt samples_downloaded adapter_ask adapter_sequence
If you have already downloaded the samples type 1 in samples_downloaded. If not, type 0. If adapter_ask is 0, it means that there is no adapter. Type 1 in adapter_ask to guess the adapter or 2 if there is an adapter.
OUTPUTS:
- /home/user/working_directory/experiment/batch/prepro.bat. An optionally batch file output. Running it you will download the samples parallely if you have not done before.
- /home/user/working_directory/experiment/batch/bench.bat. Runnng it you will perfom sRNAbench analysis.
- /home/user/working_directory/experiment/logs/parameter_file.txt. Samples report. It will be used by other scripts.
2. quality_creator.sh
A simple script to parallelize quality sRNAbench analysis.
USAGE:
Usage: sh batch_QUALITY.sh QUALITY_parameter_file.txt
In parameter file, type 0 for mean analysis, 1 for min analysis or 2 for noMM=0. You have a QUALITY_parameter_file.txt example in the documentation.
OUTPUTS:
/home/user/working_directory/experiment/batch/quality_analysis_commands.bat. Running it you will also run parallely BATCH QUALITY for all the analysis indicated before.
3. batch_QUALITY.sh
Creating batch file for quality sRNAbench analysis.
USAGE:
sh batch_QUALITY /home/user/working_directory /path/to/SraRunTable.bat mean_or_min_or_noMM Q
Type 0 for mean analysis, 1 for min analysis or 2 for noMM=0
OUTPUTS:
The output will be in your batch folder. Example: /working_dir/experiment/batch/batch_QUALITY_type_20SRP049635.bat. Running it you will run BATCH_QUALITY script parallely for all the analysis indicated in the parameter file.