Hello community!
I have a question regarding the system command.
Here is the context.
I am writing a batch file.
At some point, I want to classify my otu againts GG, Silva and RDP. The problem is that the file stability.trim.contigs.good.unique.good.filter.unique.precluster.pick.pick.agc.unique_list.0.03.cons
that is being generated by classify.otu is being rewriten if I am doing the classifications one after the others.
So I tried to use the command system to mv/cp the file to change it’s name so that it is not rewriten each time.
Here is my command line in my batch files:
classify.otu(list=current, count=current, taxonomy=stability.trim.contigs.good.unique.good.filter.unique.precluster.pick.pds.wang.taxonomy, label=0.03)
system(mv stability.trim.contigs.good.unique.good.filter.unique.precluster.pick.pick.agc.unique_list.0.03.cons.taxonomy rdp.agc.unique_list.0.03.cons.taxonomy)
classify.otu(list=current, count=current, taxonomy=stability.trim.contigs.good.unique.good.filter.unique.precluster.pick.gg.wang.taxonomy, label=0.03)
system(cp stability.trim.contigs.good.unique.good.filter.unique.precluster.pick.pick.agc.unique_list.0.03.cons.taxonomy gg.agc.unique_list.0.03.cons.taxonomy)
classify.otu(list=current, count=current, taxonomy=stability.trim.contigs.good.unique.good.filter.unique.precluster.pick.nr_v123.wang.pick.taxonomy, label=0.03)
make.shared(list=current, count=current, label=0.03)
I am getting the following error message:
system(mv stability.trim.contigs.good.unique.good.filter.unique.precluster.pick.pick.agc.unique_list.0.03.cons.taxonomy rdp.agc.unique_list.0.03.cons.taxonomy)
mv: cannot stat ‘stability.trim.contigs.good.unique.good.filter.unique.precluster.pick.pick.agc.unique_list.0.03.cons.taxonomy’: No such file or directory.
Any idea of what can be wrong?
Many thanks.