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

Warning: Error in [[: attempt to select less than one element in get1index 1: runApp #15

Closed
lananh-ngn opened this issue Sep 7, 2022 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@lananh-ngn
Copy link

Hello,
Thank you for developing this tool. I am using FragPipe output. I used to be able to use it but now I am stuck on a faded grey page after clicking on Analyze both on the web version and the R version. On the R version, in the terminal, this error is displayed Warning: Error in [[: attempt to select less than one element in get1index 1: runApp
Could you help please ?
Thank you in advance for your help.

Input file firsttwolines.txt
Contrast file contrast.txt
Design file design.txt

@tbaccata
Copy link
Owner

tbaccata commented Sep 7, 2022

Hello!

Thanks for sending example files, I could reproduce the error.

The issue are the sample names, they start with a number and contain special characters ("-" the hyphen).
R's read command(s) checks the column names whether they are in a correct format,
and finally coerces column names to syntactically valid names.

There should have been some error messages, and definitely some checks in the software.
I will have a deeper look into this, this should be reported back to the user.

Does it work when you use this exp. design? ( here I've appended an X in front of all samples, and removed special characters "-" with a dot ".")
expDesign.txt

Best,
Sebastian

@tbaccata tbaccata self-assigned this Sep 7, 2022
@tbaccata tbaccata added the bug Something isn't working label Sep 7, 2022
@lananh-ngn
Copy link
Author

Sebastian,
Thank you for the quick answer. I tried to run the tool with file you provided in your message and with the names changed in the fragpipe input file. However, I still have the same error.
Thank you in advance,
Lan Anh

@tbaccata
Copy link
Owner

tbaccata commented Sep 7, 2022

I will have a look at this, I hope I can solve this until tomorrow.
I'll get back to you.

This error only affects FragPipe input.

@lananh-ngn
Copy link
Author

lananh-ngn commented Sep 8, 2022

Thank you for your quick feedback. Also, I had to change the headers so that it fits amica's requirements but I think FragPipe changed the output in their recent upgrade: Nesvilab/FragPipe#774. The file now has Intensity and MaxLFQ Intensity.
Best regards,
Lan Anh

@tbaccata
Copy link
Owner

tbaccata commented Sep 8, 2022

Hello Lan Anh,

please try again, it should work now on the server, and the same code is also already on github.
You can use your original exp. design, amica automatically handles special characters now.

You did get an error message, that Total Intensity and Unique Intensity columns were missing, that's why you renamed them, is this correct?
The underlying issue in amica's code was, that some LFQ intensity columns were expected (either suffixed per sample with Intensity, RazorIntensity, or MaxLFQ Intensity in the combined_proteins.tsv file) in the analysis - that's what caused the error.

Relevant columns from FragPipe's output didn't change in their update, only a couple of Intensity columns have been removed. That's why amica complained about missing intensity columns.
Otherwise the same columns are present, that are parsed by amica.

I've fixed this behavior, FragPipe v18 output is now automatically handled by amica.
So you don't need to rename the columns your original file (although it should also work with the input file you've uploaded here).

Please let me know, whether everything works for you.

Best,
Sebastian

@lananh-ngn
Copy link
Author

Sebastian,
Thank you for the quick solve. I tried it with the source code and it works fine. Thank you also for the clear explanation!
Best regards,
Lan Anh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants