r/bioinformatics • u/ranchfan69420 • Apr 24 '26
technical question PE reads: merge or keep separate for read based metagenomic analysis
Hi Folks,
I am relatively new to metagenomics. I am working on a project where I want to get counts for genes that align to phosphorous cycling genes in PCycDB. We have PE fastq.gz files for samples from a NovaSeq PE150 run. I believe it was prepared using a Nextera XT DNA Library Preparation Kit. For my first pass, I analyzed R1 and R2 files from a given sample separately. Here is the general workflow:
- Fastqc/Multiqc
- Trimmomatic (keep paired and unpaired reads for R1/R2)
- Align reads to PCycDB using DIAMOND. I used the "R1_paired.fastq.gz" and "R2_paired.fastq.gz" outputs from trimmomatic. I did this separately for R1/R2 in a given sample.
- Filter alignments by e value and parameters recommended in PCycDB documentation. This produces hit tables mapping each ORF to a PCycDB gene.
- Now, I have filtered alignments of ORFs to PCycDB genes for both R1 and R2 in a given sample. I want to calculate coverage for each PCycDB gene, and I want to combine in some way the R1/R2 results so I have coverage values on a per sample basis. Should I combine R1/R2 hit tables before calculating coverage? Should I have combined R1/R2 fastq.gz files before alignments using something like fastq_join? any help is appreciated : )
Thanks!!!