I have 12 human gut microbiome WGS Nextseq reads (151 bp paired end). What will be an effective strategy to assemble a metagenome?
Let us say I have already filtered the fastq for quality, adapter sequence and host contamination (human, in this case).
1) Should I concatenate all the R1 reads as one single R1 read and one Single R2 read?
cat Sample[1..12].R1 > Single_R1.fastq
cat Sample[1..12].R2 > Single_R2.fastq
and then use Diginorm to normalize the Single_R1.fastq and Single_R2.fastq. Subsequently, feed these fastq files into any metagenome assembler such as Megahit, MetaSPAdes?
Normalize the output by using CD-HIT or similar tool to remove duplicates and filter by contig length.
OR
2) Perform metagenome assembly for each of the samples individually after applying filtering, removing adapters and host contamination.
R1=(*_R1_001.filtered.fastq)
R2=(*_R2_001.filtered.fastq)
for ((i=0;i<=${#R1[@]};i++)); do
/bin/metagenome-assembler -1 "${R1[i]}" -2 "${R2[i]}" -o ${R1[i]%.*}.contigs.fa;
done
Followed by combining all the contigs.fa into one mega_contigs.fa
cat *.contigs.fa > Mega_contigs.fa
and use CD-HIT or similar tool to remove duplicates.