Thanks Frédéric. Sounds good.
So if my primers were for example mapping the V3V4 regions than i should extract first the subregions from my 16S database ?? How would you do that ? thinking of mappers such as bwa or bowtie ??
On the other side i have also been playing with a second option that is swarm and end up doing the same thing differently
For instance by running the same pipeline but replacing the global_alignment search by swarm worked very well:
swarm -f -t 4 -d 1 -z #swarm -f -t 4 -d 1 -z $outdir/derep_sorted.fa -s amplicons.stats -u ucfinal.txt -w OTUs.fa > amplicons.swarms
-s $outdir/amplicons.stats -u $outdir/ucfinal.txt -w $outdir/OTUs.fa -l $outdir/logswarm > $outdir/amplicons.s
warms
Then i have use blast to mapp back OTUs to 16s database. My question is that should i replace blast with the vsearch global_alignment or should i consider swarm an alternative for OTU clustering followed by blast to 16s databases and doing LCA afterwards or RDP....
It looks confusing to me if swarm is a better alternative in my case ?