@@ -72,9 +72,9 @@ conda activate centrifuge
7272
7373``` {bash, eval=FALSE}
7474centrifuge \
75- -x /home/data/metagenomics-2310 /centrifuge/complete_genomes/Arc_Bac_Vir_Hum_Eupath_v2 \
76- -1 /home/data/metagenomics-2310 /centrifuge/ERR2271042_1.fastq \
77- -2 /home/data/metagenomics-2310 /centrifuge/ERR2271042_2.fastq -t \
75+ -x /home/data/metagenomics/centrifuge/complete_genomes/Arc_Bac_Vir_Hum_Eupath_v2 \
76+ -1 /home/data/metagenomics/centrifuge/ERR2271042_1.fastq \
77+ -2 /home/data/metagenomics/centrifuge/ERR2271042_2.fastq -t \
7878 -p 4 \
7979 --met-file ~/centrifuge/centrifuge_results/ERR2271042_meta.txt \
8080 --met-stderr -S ~/centrifuge/centrifuge_results/ERR2271042_cent.out
@@ -84,12 +84,12 @@ centrifuge \
8484You can also run all the samples together using a for loop (>1 hr).
8585
8686``` {bash, eval=FALSE}
87- for i in /home/data/metagenomics-2310 /centrifuge/*_1.fastq; do
87+ for i in /home/data/metagenomics/centrifuge/*_1.fastq; do
8888 bn=`basename $i _1.fastq`
8989 centrifuge \
90- -x /home/data/metagenomics-2310 /centrifuge/complete_genomes/Arc_Bac_Vir_Hum_Eupath_v2 \
91- -1 /home/data/metagenomics-2310 /centrifuge/${bn}_1.fastq \
92- -2 /home/data/metagenomics-2310 /centrifuge/${bn}_2.fastq -t \
90+ -x /home/data/metagenomics/centrifuge/complete_genomes/Arc_Bac_Vir_Hum_Eupath_v2 \
91+ -1 /home/data/metagenomics/centrifuge/${bn}_1.fastq \
92+ -2 /home/data/metagenomics/centrifuge/${bn}_2.fastq -t \
9393 -p 4 \
9494 --met-file ~/centrifuge/centrifuge_results/${bn}_meta.txt \
9595 --met-stderr -S ~/centrifuge/centrifuge_results/${bn}_cent.out
@@ -120,7 +120,7 @@ Create the report. We will use a for loop to generate the report for all the sam
120120for i in ~/centrifuge/centrifuge_results/*_cent.out; do
121121 bn=`basename $i _cent.out`
122122 centrifuge-kreport \
123- -x /home/data/metagenomics-2310 /centrifuge/complete_genomes/Arc_Bac_Vir_Hum_Eupath_v2 \
123+ -x /home/data/metagenomics/centrifuge/complete_genomes/Arc_Bac_Vir_Hum_Eupath_v2 \
124124 $i \
125125 > ~/centrifuge/centrifuge_krn_results/${bn}_cent.out.krn
126126done
132132Use awk to extract columns 2, 10, and 18 from the PRJEB23207 metadata file. Then, pipe the output to grep and exclude samples that were sequenced with the “Ion Torrent PGM” platform
133133
134134``` {bash, eval=FALSE}
135- awk -F'\t' '{print $2,$10,$18}' /home/data/metagenomics-2310 /centrifuge/PRJEB23207_metadata.txt | grep -i -v "ion"
135+ awk -F'\t' '{print $2,$10,$18}' /home/data/metagenomics/centrifuge/PRJEB23207_metadata.txt | grep -i -v "ion"
136136```
137137
138138## Visualize the Kraken Reports with Pavian
@@ -252,7 +252,7 @@ Copy our already downloaded file.
252252<!-- This was downloaded 11/8/2024 and took approximately 17 minutes-->
253253
254254``` {bash, eval=FALSE}
255- cp /home/data/metagenomics-2310 /centrifuge/eupath/eupathDB.tar.gz .
255+ cp /home/data/metagenomics/centrifuge/eupath/eupathDB.tar.gz .
256256```
257257
258258This is a compressed tarball file that contains several files. Let's uncompress it and look into the library file it created.
0 commit comments