Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unrecognized option: -id, -isotopes, -methods_file #11

Closed
Steynd08 opened this issue May 3, 2019 · 7 comments
Closed

Unrecognized option: -id, -isotopes, -methods_file #11

Steynd08 opened this issue May 3, 2019 · 7 comments
Assignees

Comments

@Steynd08
Copy link

Steynd08 commented May 3, 2019

Good day,

I am running Reporter-0.7.15 on a server and I have installed it on each computer node, so all should be running fine. According the the info page in cmd line for Reporter the input options "-id" is mandatory, and either "-isotopes" OR "-methods_file" should identify the .xml file with isotope specifications ( I have tried both, with reference to #6 recommendations). Except that the following errors are still occurring. What could the reason for this be? Are there any alternate options?

Fri May 03 10:36:31 SAST 2019: Reporter version 0.7.15.
Memory given to the Java virtual machine: 28631367680 b.
Total amount of memory in the Java virtual machine: 2022178816 b.
Free memory: 1958823720 b.
Java version: 1.8.0_181.
org.apache.commons.cli.UnrecognizedOptionException: Unrecognized option: -id
at org.apache.commons.cli.Parser.processOption(Parser.java:363)
at org.apache.commons.cli.Parser.parse(Parser.java:199)
at org.apache.commons.cli.Parser.parse(Parser.java:85)
at eu.isas.reporter.cli.ReporterCLI.main(ReporterCLI.java:815)

Fri May 03 10:38:12 SAST 2019: Reporter version 0.7.15.
Memory given to the Java virtual machine: 28631367680 b.
Total amount of memory in the Java virtual machine: 2022178816 b.
Free memory: 1958823720 b.
Java version: 1.8.0_181.
org.apache.commons.cli.UnrecognizedOptionException: Unrecognized option: -isotopes
at org.apache.commons.cli.Parser.processOption(Parser.java:363)
at org.apache.commons.cli.Parser.parse(Parser.java:199)
at org.apache.commons.cli.Parser.parse(Parser.java:85)
at eu.isas.reporter.cli.ReporterCLI.main(ReporterCLI.java:815)

Fri May 03 10:41:11 SAST 2019: Reporter version 0.7.15.
Memory given to the Java virtual machine: 28631367680 b.
Total amount of memory in the Java virtual machine: 2022178816 b.
Free memory: 1958823720 b.
Java version: 1.8.0_181.
org.apache.commons.cli.UnrecognizedOptionException: Unrecognized option: -methods_file
at org.apache.commons.cli.Parser.processOption(Parser.java:363)
at org.apache.commons.cli.Parser.parse(Parser.java:199)
at org.apache.commons.cli.Parser.parse(Parser.java:85)
at eu.isas.reporter.cli.ReporterCLI.main(ReporterCLI.java:815)

Here is my bash command(s):
java -cp $REPORTER eu.isas.reporter.cli.ReporterCLI -in "/nlustre/users/dwilson/peptideshaker_output/MGF_100/FU_100/CDK/HDB/Rep1/ps_output_CDK100HDB_SM_FT_1_1.cpsx" -methods_file "/nlustre/users/dwilson/ZippedData/defaultMethods.xml" -out "/nlustre/users/dwilson/Reporter_Output/MGF_100/FU_100/CDK/HDB/FT/Rep1/Quant_output_CDK100HDB_SM_FT_1_1.cpsx" -zip "/nlustre/users/dwilson/Reporter_Output/MGF_100/FU_100/CDK/HDB/FT/Rep1/Quant_output_CDK100HDB_SM_FT_1_1.zip" -threads 8 -temp_folder "/nlustre/users/dwilson/Reporter_Output/TEMPSTORE/HDB/FU_100/FT/Rep1" -log "/nlustre/users/dwilson/Reporter_Output/logs/HDB/FU_100/FT/Rep1"

There is only 1 method listed in the methods file.
Thanks!
Denise

@hbarsnes hbarsnes self-assigned this May 3, 2019
@hbarsnes
Copy link
Member

hbarsnes commented May 3, 2019

Hi Denise,

I think you are mixing ReporterCLI and ReportCLI. :)

These have different roles and different parameters. Run eu.isas.reporter.cli.ReporterCLI and eu.isas.reporter.cli.ReportCLI to see all the options for the two command lines.

Best regards,
Harald

@Steynd08
Copy link
Author

Steynd08 commented May 3, 2019

Hi Harald,

Thanks for your response. I understand why you would think I am confusing the two- because my code above has "-in" instead of "-id". I tried both out of desperation. Is there another reason why you say I am confusing the two?

The options for the command line for ReporterCLI are:
_java -cp $REPORTER eu.isas.reporter.cli.ReporterCLI | grep "-"


-id The PeptideShaker project (.cpsx or .zip).
-isotopes The isotope correction factors file (.xml file). Default values used if not provided. It is strongly advised to provide the values corresponding to the labelling kit used during the experiment.
-methods_file Path to the isotope correction factors file containing the quantification methods including isotopic correction factors. Default values used if not provided.
-method The reporter ion quantification method to use from the isotopic methods file in case multiple methods are listed in the file. Inferred from the identification parameters if not provided.
-out Output file to save the project.
-zip Exports the entire project as a zip file in the file specified.
-threads Number of threads to use for the processing, default: the number of cores on the machine.
-temp_folder A folder for temporary file storage. Use only if you encounter problems with the default configuration.
-id_params The identification parameters file to use._

So, I enter the command:
java -cp $REPORTER eu.isas.reporter.cli.ReporterCLI -id "/nlustre/users/dwilson/peptideshaker_output/MGF_100/FU_100/CDK/HDB/Rep1/ps_output_CDK100HDB_SM_FT_1_1.cpsx" -isotopes "/nlustre/users/dwilson/ZippedData/defaultMethods.xml" -out "/nlustre/users/dwilson/Reporter_Output/MGF_100/FU_100/CDK/HDB/FT/Rep1/Quant_output_CDK100HDB_SM_FT_1_1.cpsx" -zip "/nlustre/users/dwilson/Reporter_Output/MGF_100/FU_100/CDK/HDB/FT/Rep1/Quant_output_CDK100HDB_SM_FT_1_1.zip" -threads 7 -temp_folder "/nlustre/users/dwilson/Reporter_Output/TEMPSTORE/HDB/FU_100/FT/Rep1" -log "/nlustre/users/dwilson/Reporter_Output/logs/HDB/FU_100/FT/Rep1" -id_params "/nlustre/users/dwilson/ZippedData/FU_hybrid_stablemods_FULL.par"

But my error output is still:
Fri May 03 16:01:37 SAST 2019: Reporter version 0.7.15.
Memory given to the Java virtual machine: 28631367680 b.
Total amount of memory in the Java virtual machine: 2022178816 b.
Free memory: 1969382904 b.
Java version: 1.8.0_181.
org.apache.commons.cli.UnrecognizedOptionException: Unrecognized option: -id
at org.apache.commons.cli.Parser.processOption(Parser.java:363)
at org.apache.commons.cli.Parser.parse(Parser.java:199)
at org.apache.commons.cli.Parser.parse(Parser.java:85)
at eu.isas.reporter.cli.ReporterCLI.main(ReporterCLI.java:815)

Hope you can help.

Regards,
Denise

@hbarsnes
Copy link
Member

hbarsnes commented May 3, 2019

Hi Denise,

I understand why you would think I am confusing the two- because my code above has "-in" instead of "-id". I tried both out of desperation. Is there another reason why you say I am confusing the two?

That was indeed the main reason. But it turns out that it was me and not you confusing the two, as you can see from the release notes for the latest version from February: https://github.com/compomics/reporter/wiki/ReleaseNotes.

So if you update to Reporter v0.7.17 the options should again work as wanted.

Best regards,
Harald

@Steynd08
Copy link
Author

Steynd08 commented May 10, 2019 via email

@hbarsnes
Copy link
Member

Hi Denise,

There should be no need to build Reporter from the source unless you want to make change to the code.

Reporter v0.7.17 (or now actually v0.7.18) can be downloaded from http://compomics.github.io/projects/reporter.html or directly from GitHub at https://github.com/compomics/reporter. Just click the download link.

Best regards,
Harald

@Steynd08
Copy link
Author

Hi Harald,

The server route is not working (no error log), so I tried the software on my desktop instead. ReporterGUI v0.7.19 is saying it is not compatible with my Peptideshaker projects (v1.16.36) ran in April this year. I have also tried Reporter version 0.7.7 (May 2017) and 0.7.17 (April 2019), with the same error, i.e. unable to open project due to PeptideShaker version compatibility issue.

I would not like to rerun the PeptideShaker jobs (for which I have exported reports), do you perhaps have other versions of Reporter on archive, that I can try to overcome the compatibility issue?

Regards,
Denise

@hbarsnes
Copy link
Member

Hi Denise,

You can find all the old versions of Reporter here: http://genesis.ugent.be/maven2/eu/isas/reporter/Reporter/.

Best regards,
Harald

@hbarsnes hbarsnes closed this as completed Mar 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants