Extra argument () error for visualization command

I got the error "1/1 Extra argument ( )" for my visualization code

qiime demux summarize \
--i-data /Users/soilmicrobialglobalchangelab/Library/CloudStorage/OneDrive-UniversityofTexasatElPaso/RamirezLab/CedricWind/demux-paired-end.qza \
--o-visualization /Users/soilmicrobialglobalchangelab/Library/CloudStorage/OneDrive-UniversityofTexasatElPaso/RamirezLab/CedricWind/visualizationdemux-paired-end.qzv

Hello @Parikrama_Sapkota,

Check for spaces after backslashes in your command.

1 Like

qiime demux summarize \
--i-data /Users/soilmicrobialglobalchangelab/Library/CloudStorage/OneDrive-UniversityofTexasatElPaso/RamirezLab/CedricWind/demux-paired-end.qza \
--o-visualization /Users/soilmicrobialglobalchangelab/Library/CloudStorage/OneDrive-UniversityofTexasatElPaso/RamirezLab/CedricWind/visualizationdemux-paired-end.qzv \

Is this a better code?

Hello @Cedric_Shamley_Jr,

These are the rules for backslashes:

  • Only use a backslash if breaking a command across multiple lines
  • A backslash should come at the end of every line that isn't the last line of the command
  • Don't put any character, including a space, after a backslash

This one just saved

qiime demux summarize \

--i-data /Users/soilmicrobialglobalchangelab/Library/CloudStorage/OneDrive-UniversityofTexasatElPaso/RamirezLab/CedricWind/demux-paired-end.qza
--o-visualization /Users/soilmicrobialglobalchangelab/Library/CloudStorage/OneDrive-UniversityofTexasatElPaso/RamirezLab/CedricWind/visualizationdemux-paired-end.qzv \

Saved Visualization to: /Users/soilmicrobialglobalchangelab/Library/CloudStorage/OneDrive-UniversityofTexasatElPaso/RamirezLab/CedricWind/visualizationdemux-paired-end.qzv
(qiime2-2023.2) soilmicrobialglobalchangelab@Soils-iMac ~ %

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.