I'm almost new qiime2 user. I'm trying to reach a good taxonomy classification for my analysis. I'm working with a classifier from gg training for the V3-V4 region... After some filtration process to remove unclassified sequences and all this stuff, I'm trying to rename some species (such as those classified as k__Bacteria; p__BRC1; c__PRR-11; o__; f__; g__; s__) with rescript edit-taxonomy. However qiimes gives me a warning: "c__PRR-11: command not found..."
I assume your intent is to replace this entire string: p__BRC1; c__PRR-11; o__; f__; g__; s__
with this entire string: p__ Incertae sedis; c__ Candidate; o__; f__; g__ Candidatus Sumerlaea; s__,
If so, then you need to place each in quotes as follows:
Otherwise it will try and replace each search string (separated by a space) with its corresponding string in the replacement string list. That is 'p__BRC1; will be replaced by 'p__Incertae sedis;, and so on....
Note any taxonomic labels that contain spaces should be encapsulated in quotes. That is, if you really wanted to replace p__BRC1 with p__Incertae sedis and g__ with g__Candidatus Sumerlaea, then you'd enter the following:
If a string with a space is provided via --m-replacement-map-file, does that work because the delimiter is automatically recognized as a tab instead or what happens?
Ohh good catch! We'll work on incorporating this in the next release! I've added this example into the tutorial.
Yes the tab should be recognized as the delimiter when using the metadata file. If entering on the command line, you should be able to encapsulate each separate string in single-quotes.