Skip to content

PHYLOFLASH

eolesin edited this page Jan 11, 2021 · 13 revisions

Examining diversity of rRNA genes within the quality filtered reads.

# Define path to reads
PATH_READS2="01_QC"

# Define path to the database
PATH_DB="/export/dahlefs/work/Databases/Phyloflash_db/138/"

# Run phyloseq on the reads
# I wanted to simultaneously change the names of the files from here too... 
for file in ${PATH_READS2}/*R1.fastq;
    do   
    nam=$(basename ${file} | rev | cut -f2- -d"-" | rev | cut -f2- -d"-"); \
    firstbit=$(basename ${file} | cut -f1 -d"-");
    
    echo "analyzing...."${nam} 
    
    phyloFlash.pl -lib ${nam} -read1 ${PATH_READS2}/$firstbit-${nam}-QUALITY_PASSED_R1.fastq \
    -read2 ${PATH_READS2}/$firstbit-${nam}-QUALITY_PASSED_R2.fastq -almosteverything -CPUs 10 \
    -readlength 150 -dbhome ${PATH_DB}

    done


# Compare different samples to one another, either in a heatmap
# or a barplot format.
phyloFlash_compare.pl --allzip --task heatmap, barplot

Clone this wiki locally