-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Incorporating and streamlining checkpoint update
- Loading branch information
1 parent
f60d5bf
commit 0efac25
Showing
6 changed files
with
441 additions
and
1,017 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,20 @@ | ||
# SAMSA2 - A fork of the complete metatranscriptome analysis pipeline | ||
# SAMSA2 - A complete metatranscriptome analysis pipeline | ||
|
||
### modification by [email protected] | ||
***** | ||
|
||
### New in my version. | ||
This is a new master script (master_samsa2.slurm) with several modifications: | ||
**Version 2.2.0 - Yesod - Modifications added by [email protected]:** | ||
|
||
* It specifies multithreading for all programs for which it is available (trimmomatic, pear, diamond) | ||
* The script automatically creates a `checkpoint` file. Once a step is finished, it writes the name of that specific step in `checkpoint`. Everytime you run the script, it looks if that file exist. If so, it reads it and SKIP the steps written in checkpoint. This is done to avoid re-run CPU intense steps if not necessary. | ||
* In the merging step, unmerged reads are concatenated and added to a single file. The forward read and the reverse (complement) read are concatenated with a string of 20 Ns in the middle: This is done through a new R script entitled: `combining_umerged.R` | ||
* Multithreading added for PEAR, Trimmomatic, SortMeRNA | ||
* The script automatically creates a `checkpoint` file. Once a step is finished, it writes the name of that specific step in `checkpoint` and that step is skipped on a rerun of the master_script. This is done to avoid re-running CPU-intensive steps if unnecessary. | ||
* A new version of the master script now exists, called "master\_script\_preserving\_unmerged.sh". In this script, in the merging step, unmerged reads are concatenated and added to a single file. The forward read and the reverse (complement) read are concatenated with a string of 20 Ns in the middle: This is done through a new R script entitled: `combining_umerged.R` | ||
* Extra care is taken to remove unnecessary files once a step is performed to keep disk usage at a minimum. | ||
* Each step contains an exit statement to be printed if the master script dies due to an unforseen error. | ||
* Trimmomatic removes adapter contamination according to a specific fasta file. | ||
* All options, read & program location are to be specified in the first section of the script. | ||
* The script is formated to be run on a HPC using a SLURM job scheduler, but this can be easily changed / removed. | ||
* I've removed the --num_alignments 0 in the ribosomal `sortmrna` step. This caused problems and slowed things down a lot. Plus we don't care about the rRNA alignments. If a sequence aligns to 1 or 1,000 rRNA its out anyways... | ||
|
||
#### To do: | ||
* reverse the order of the merging and trimming step (but again, maybe not...) | ||
* simplify some syntax / make sure all paths are relative (mostly done) | ||
* The flag --num_alignments 0 in the ribosomal `sortmrna` step has been removed. This caused problems and slowed things down a lot. Plus, we don't care about the rRNA alignments - whether a sequence aligns to 1 or 1,000 rRNA, it's out anyways... | ||
|
||
***** | ||
|
||
Version 2 of the SAMSA pipeline - faster! Lighter! More options! Less waiting! | ||
|
||
|
@@ -32,7 +28,7 @@ Version 2 of the SAMSA pipeline - faster! Lighter! More options! Less waiting | |
|
||
### Dependencies | ||
|
||
SAMSA2 requires Python2 for aggregation scripts. Currently, this pipeline does not work with Python3, although an update is planned. | ||
SAMSA2 requires Python2 for aggregation scripts. Currently, this pipeline works mostly with Python3, although there may be some errors not yet caught. | ||
|
||
The following programs can be downloaded OR can be installed from the binaries provided in the programs/ folder. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.