dada2 icon indicating copy to clipboard operation
dada2 copied to clipboard

Using dada2 to process single sample fasta files

Open rowe285 opened this issue 8 months ago • 2 comments

Hello, I recognize from the outset it is not ideal to have fasta files as a starting point given the loss of quality score information. However, is it still possible to work the files through dada2? I have a total of 29 samples, each as its own fasta file, and have started by using dada2:::derepFasta on each individually, such that each is now a derep class object. Is it then possible to filter and trim (using fastqFilter?). If so, should this be done to each derep class object individually, or is there a way to combine them first and then perform filtering and trimming in one step?

Alternatively, since the derep class objects are fastq with uniform quality scores, is there a way to export those and then bring them back into dada2 using a file path, therefore being more similar to the traditional workflow described?

rowe285 avatar Oct 25 '23 17:10 rowe285

such that each is now a derep class object. Is it then possible to filter and trim (using fastqFilter?). If so, should this be done to each derep class object individually, or is there a way to combine them first and then perform filtering and trimming in one step?

No, filterAndTrim works on fastq files, not on drep-class objects.

Alternatively, since the derep class objects are fastq with uniform quality scores, is there a way to export those and then bring them back into dada2 using a file path, therefore being more similar to the traditional workflow described?

There is no simple command to do that. There may be a way to do this on the fasta files in R using commands in the ShortRead package. However, we don't recommend or support this approach.

benjjneb avatar Oct 26 '23 20:10 benjjneb

Thank you for your help!

rowe285 avatar Oct 28 '23 00:10 rowe285