-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
start of kraken script for decontamination
- Loading branch information
Negin Valizadegan
committed
Oct 14, 2021
1 parent
a3476ca
commit 321f764
Showing
1 changed file
with
48 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#!/bin/bash | ||
|
||
#SBATCH --mem 70G | ||
#SBATCH --job-name kraken | ||
#SBATCH --mail-user [email protected] ## CHANGE THIS TO YOUR EMAIL | ||
#SBATCH --mail-type ALL | ||
#SBATCH --output slurm-%j.out | ||
#SBATCH -n 6 | ||
#SBATCH -N 1 | ||
#SBATCH -A h3abionet | ||
#SBATCH -o /home/groups/h3abionet/RefGraph/results/NeginV_Test_Summer2021/slurm_output/slurm-%j.out | ||
|
||
|
||
|
||
# HPCBio UIUC Kraken; Created by Negin Valizadegan Oct 6, 2021; [email protected] | ||
|
||
# ----- Load necessary modules ------ | ||
module load Kraken2/2.0.8-beta-IGB-gcc-4.9.4 | ||
|
||
echo "Input directory is set to" | tr '\n' ' ' && pwd | ||
|
||
|
||
# Set working directory ------ | ||
cd /home/groups/h3abionet/RefGraph/results/NeginV_Test_Summer2021/results/ | ||
|
||
|
||
# Create a directory for outputs ---- | ||
mkdir -p annotation/kraken/masurca | ||
mkdir -p annotation/kraken/megahit | ||
|
||
echo "Start of kraken process masurca" | ||
|
||
# Masurca ----- | ||
|
||
# Run Kraken ------ | ||
|
||
# kraken2 --use-names --threads 6 --quick \ | ||
# --db /home/groups/h3abionet/RefGraph/data/kraken2/human \ | ||
# annotation/seqkit/masurca/HG03563.masurca.filtered.fasta | ||
|
||
kraken2 --use-names --threads 6 --quick \ | ||
--report annotation/kraken/masurca/HG03563_kraken2_report.txt \ | ||
--classified-out annotation/kraken/masurca/HG03563_masurca_kraken2_classified.fasta \ | ||
--unclassified-out annotation/kraken/masurca/HG03563_masurca_kraken2_unclassified.fasta \ | ||
--db /home/groups/h3abionet/RefGraph/data/kraken2/pluspf_20200919 \ | ||
annotation/seqkit/masurca/HG03563.masurca.filtered.fasta > annotation/kraken/masurca/HG03563_masurca_kraken2_output.txt | ||
|
||
echo "End of kraken process masurca" |