Hello,
This is my first post here, so I apologize if the format is wrong or if I use the wrong tag.
I am using qiime2 to make a phylogenetic tree. So far, I have converted my fasta file to a qza file with the following code:
qiime tools import
--type 'FeatureData[Sequence]'
--input-path ./sequences.fasta
--output-path ./sequences.qza
I am stuck on the alignment code:
qiime alignment mafft
--i-sequences sequences.qza
--o-alignment aligned-sequences.listed.qza
This is the error I get:
Plugin error from alignment:
Invalid character in sequence: b'\t'.
Valid characters: ['A', 'B', 'G', 'C', 'M', 'W', 'S', '.', 'V', 'N', 'T', 'R', 'K', 'D', 'H', 'Y', '-']
Note: Use lowercase
if your sequence contains lowercase characters not in the sequence's alphabet.
And this is the debug info:
File "/Users/luna/opt/anaconda3/envs/qiime2-2021.11/lib/python3.8/site-packages/q2cli/commands.py", line 339, in call
results = action(**arguments)
File "", line 2, in mafft
File "/Users/luna/opt/anaconda3/envs/qiime2-2021.11/lib/python3.8/site-packages/qiime2/sdk/action.py", line 245, in bound_callable
outputs = self.callable_executor(scope, callable_args,
File "/Users/luna/opt/anaconda3/envs/qiime2-2021.11/lib/python3.8/site-packages/qiime2/sdk/action.py", line 391, in callable_executor
output_views = self._callable(**view_args)
File "/Users/luna/opt/anaconda3/envs/qiime2-2021.11/lib/python3.8/site-packages/q2_alignment/_mafft.py", line 128, in mafft
return _mafft(sequences_fp, None, n_threads, parttree, False)
File "/Users/luna/opt/anaconda3/envs/qiime2-2021.11/lib/python3.8/site-packages/q2_alignment/_mafft.py", line 104, in _mafft
msa = skbio.TabularMSA.read(result_fp, format='fasta',
File "/Users/luna/opt/anaconda3/envs/qiime2-2021.11/lib/python3.8/site-packages/skbio/io/registry.py", line 652, in read
return registry.read(file, into=cls, format=format, **kwargs)
File "/Users/luna/opt/anaconda3/envs/qiime2-2021.11/lib/python3.8/site-packages/skbio/io/registry.py", line 513, in read
return self._read_ret(file, format, into, verify, kwargs)
File "/Users/luna/opt/anaconda3/envs/qiime2-2021.11/lib/python3.8/site-packages/skbio/io/registry.py", line 520, in _read_ret
return reader(file, **kwargs)
File "/Users/luna/opt/anaconda3/envs/qiime2-2021.11/lib/python3.8/site-packages/skbio/io/registry.py", line 998, in wrapped_reader
return reader_function(fhs[-1], **kwargs)
File "/Users/luna/opt/anaconda3/envs/qiime2-2021.11/lib/python3.8/site-packages/skbio/io/format/fasta.py", line 748, in _fasta_to_tabular_msa
return TabularMSA(
File "/Users/luna/opt/anaconda3/envs/qiime2-2021.11/lib/python3.8/site-packages/skbio/alignment/_tabular_msa.py", line 785, in init
self.extend(sequences, minter=minter, index=index,
File "/Users/luna/opt/anaconda3/envs/qiime2-2021.11/lib/python3.8/site-packages/skbio/alignment/_tabular_msa.py", line 1956, in extend
sequences = list(sequences)
File "/Users/luna/opt/anaconda3/envs/qiime2-2021.11/lib/python3.8/site-packages/skbio/io/registry.py", line 1008, in wrapped_reader
yield from reader_function(fhs[-1], **kwargs)
File "/Users/luna/opt/anaconda3/envs/qiime2-2021.11/lib/python3.8/site-packages/skbio/io/format/fasta.py", line 676, in fasta_to_generator
yield constructor(seq, metadata={'id': id, 'description': desc},
File "/Users/luna/opt/anaconda3/envs/qiime2-2021.11/lib/python3.8/site-packages/skbio/sequence/_grammared_sequence.py", line 326, in init
self._validate()
File "/Users/luna/opt/anaconda3/envs/qiime2-2021.11/lib/python3.8/site-packages/skbio/sequence/_grammared_sequence.py", line 342, in _validate
raise ValueError(
ValueError: Invalid character in sequence: b'\t'.
Valid characters: ['A', 'B', 'G', 'C', 'M', 'W', 'S', '.', 'V', 'N', 'T', 'R', 'K', 'D', 'H', 'Y', '-']
Note: Use lowercase
if your sequence contains lowercase characters not in the sequence's alphabet.
I am running qiime2-2021.11 using visual studio code
Thank you so much in advance for taking the time to read this!!