Skip to content

Commit

Permalink
mkdir logs and idx instead of obx
Browse files Browse the repository at this point in the history
  • Loading branch information
Shettland committed Nov 7, 2023
1 parent 8296cfc commit ea30ce1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bu_isciii/templates/mtbseq/ANALYSIS/ANALYSIS01_MTBSEQ/03-MTBSeq/lablog
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
# srun parameters
scratch_dir=$(echo $(pwd) | sed "s@/data/bi/scratch_tmp/@/scratch/@g" )

mkdir logs
cat ../samples_id.txt | xargs -I % echo "mkdir %; ln -s ../../01-preprocessing/%/%_R1_filtered.fastq.gz %/%_lib1_R1.fastq.gz" > _00_prepareRaw.sh
cat ../samples_id.txt | xargs -I % echo "ln -s ../../01-preprocessing/%/%_R2_filtered.fastq.gz %/%_lib1_R2.fastq.gz" >> _00_prepareRaw.sh
cat ../samples_id.txt | xargs -I % echo "cd %;ls *.fastq.gz | tr '_' '\t' | cut -f 1,2 | sort -u > samples.txt;cd -" > _01_preparesamples.sh

cat ../samples_id.txt | xargs -I @@ echo -e "srun --job-name MTBSEQ.@@ --output logs/MTBSEQ.@@.%j.log --partition middle_obx --mem 48G --chdir ${scratch_dir}/@@ --cpus-per-task 10 MTBseq --step TBfull --threads 10 --samples samples.txt &" > _02_mtbseq.sh
cat ../samples_id.txt | xargs -I @@ echo -e "srun --job-name MTBSEQ.@@ --output logs/MTBSEQ.@@.%j.log --partition middle_idx --mem 48G --chdir ${scratch_dir}/@@ --cpus-per-task 10 MTBseq --step TBfull --threads 10 --samples samples.txt &" > _02_mtbseq.sh

# classification
echo "mkdir classification_all" > _03_gather_results.sh
Expand Down

0 comments on commit ea30ce1

Please sign in to comment.