forked from davekk/Scripts
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
50 additions
and
1 deletion.
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
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
|
||
#specify paths to your working directory and your reads directory | ||
WORK_DIR='/home/dkiambi/ayb_results/' | ||
|
||
cd $WORK_DIR | ||
mkdir -p quast_scripts quast_logs | ||
for file in $(ls -I "*scripts" -I "*logs" -I "old*" -I "fast*" -I "jellyfish_out" -I "*\.*") | ||
do | ||
|
||
echo \ | ||
"#!/bin/bash -e | ||
#SBATCH -p batch | ||
#SBATCH -n 2 | ||
#SBATCH -o quast_logs/quast.%N.%j.out | ||
#SBATCH -e quast_logs/quast.%N.%j.err | ||
# load approporate module | ||
module load quast | ||
quast.py ./${file}/contigs.fa -o ./${file}/ -t 2 " > quast_scripts/$file'_slurm.sh' | ||
sbatch quast_scripts/$file'_slurm.sh' | ||
done |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash -e | ||
#SBATCH -p batch | ||
#SBATCH -n 4 | ||
#SBATCH -w compute03 | ||
#SBATCH -o ./jfm.%N.%j.out | ||
#SBATCH -e ./jfm.%N.%j.err | ||
#SBATCH -p highmem | ||
#SBATCH -n 4 | ||
#SBATCH -w mammoth | ||
# define paths | ||
READ_DIR1='/export/data/ilri/miseq/MiSeq2/MiSeq2Output2018/181128_M03021_0009_000000000-C3F6V_AYB_run1/' | ||
READ_DIR2='/export/data/ilri/miseq/MiSeq2/MiSeq2Output2018/181203_M03021_0010_000000000-C63KC_AYB_run2/' | ||
READ_DIR3='/var/scratch/African_Yam_Bean_TSS11-RUN3-106656809/FASTQ_Generation_2018-12-16_08_18_54Z-143723645/1_L001-ds.1fa37ed4a86a45f6b7f61c434c62fe41/' | ||
READ1='1_S1_L001_R1_001.fastq.gz' | ||
READ2='1_S1_L001_R2_001.fastq.gz' | ||
|
||
# load relevant module | ||
module load velvet | ||
#module load jellyfish | ||
# land at appropriate place | ||
cd /home/dkiambi/ayb_results/ | ||
|
||
# run the the asmebly with the relavant runs, optimising for kmers from 41 to 61 with changes of 5 | ||
|
||
velveth velvet_out 63 -shortPaired -fastq.gz -separate $READ_DIR2/$READ1 $READ_DIR2/$READ2 |