I am currently trying to compare samples from several papers and they all make their data publically available in different formats. I have been able to navigate most of the imports but a few papers post their data so that it is in fasta files and not fastq files. They will post each sample as a different fasta file. For example there are 41 different samples and it is Sample01.fasta, Sample02.fasta, Sample03.fasta .... Sample41.fasta. I have found this forum issue but it doesn't give a solution, just that is was solved:
I have tried to import the data using a conda installed Qiime2 version 2024.5 by putting all the samples into one directory (Seq_files) and then use the command:
Missing one or more files for QIIME1DemuxDirFmt: 'seqs.fna'*
How can I import mulitple fasta files that do not contain quality?
Another issue I run into is importing a fasta file that does not contain quality and has a forward and reverse fasta file. So I have Forward.fasta and Reverse.fasta for one sample. There is no quality included. I have tried using a manifest.tsv file for this to see if that would work but I keep getting an error. I run the same command as above and get a similar error:
So I have tried to look through the importing docs but ran into a few problems. One is all of my sequences had already been demultiplexed, so they were already separated into individual samples. I have since combined them into one sequencing file but am still getting an error because my sequences without quality seem to be the wrong format. But I am not entirely sure why. This is what my sequence file looks like:
Do I need to remove the middle code. For example remove 'M00232:25:000000000-D098G:1:1102:15730:29303'?
Lastly, looking through the importing docs I can't seem to find an option for importing a fasta file without quality that has a forward and a reverse. I have two sequence files for each sample, one forward and one reverse. How do I upload these? I can't seem to find an option for this. Does qiime have a process for merging these reads first so that then I can import the sample the same way as above?
Fasta files per sample are not commonly a starting point for analysis, which is why we don't have support for them without some workarounds. @Nicholas_Bokulich pointed out that you could create artificial quality scores to transform these data into fastq files, or you could merge them into a single file so that the single file fasta import works. Both of these are less ideal than starting from scratch with the original fastq files. Do you have access to these?
I do not have access to these files. We are doing a large dataset comparison from over 50 different manuscripts and I have reached out to several people to get their raw data reads and have failed with a few. So we are still trying to get these datasets to work. They have deposited sequences without quality and I am hoping I can find a work around with them.
For one manuscript they provide a forward and a reverse fasta file without quality for one sample. I am not exactly sure how to move forward with this sample. I suppose like you mentioned I could give false quality scores? Although not entirely sure how I could do this. Just write a python code that would insert them I suppose?
For the manuscripts that had several samples all in different fasta files I just concatenate them and tried to import them like it says in importing docs. I keep getting an error that says:
I see. The issue could indeed be with the header, especially if the two headers are separated by a newline. The first line looks like a typical fastq header. Fasta headers usually begin with a > symbol, though I'm unsure off the top of my head if our fasta formats enforce this. Did the error provide any more detail or a python traceback?
No the only information it gave for the error was:
There was a problem importing sequences.fna:
sequences.fna is not a(n) QIIME1DemuxFormat file
I will try to remove the middle part of the header to see if that works. The header does contain '>' at the start of each name and I am not sure why it was not seen in the forum post. I might have typed something wrong.
As for the forward and reverse fasta sequences how might I trick qiime2 to make it think it is a fastq file?
It does seem the code is pretty light on the explanation when it errors:
I actually don't think it's the middle section necessarily, as it uses a str.split() which should ignore everything after the first space.
It's possible there's a duplicate ID, or the number after the first _ isn't increasing to keep the reads unique.
I think the goal should be to use vsearch dereplicate-sequences which accepts SampleData[Sequences]. Downside, we don't have a method which joins reads without quality scores. So you may need to find a tool to do that.
Sorry I don't know if that's super helpful. I would also support the concept of laundering in quality scores so you can get past the import step. Just don't run anything that would concider them after the fact (i.e. only use dereplicate-sequences and then proceed to your strategy in the other thread)