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

PCA plot colors #200

Open
sudeep71 opened this issue Jan 17, 2019 · 8 comments
Open

PCA plot colors #200

sudeep71 opened this issue Jan 17, 2019 · 8 comments

Comments

@sudeep71
Copy link

Hi

Great browser!!! I am having trouble when i try to select a category on my meta file such as treatment or condition or time from the browser to re-draw the PCA. I get the following error

Error in : Must request at least one colour from a hue palette

This does not happen with demo data?

few lines from my metafile are attached:

example_meta.xlsx

@nephantes
Copy link
Member

You might need to define like below. R doesn't like "/"

sample day time treatment date group_time group_treat batch
AB-1 AB_D1 2.5 R 10_23_18 A A_R 1
AB-2 AB_D1 2.5 I 10_23_18 A A_I 1
AB-3 AB_D1 3 R 10_23_18 B B_R 1
AB-4 AB_D1 3 I 10_23_18 B B_I 1
AB-5 AB_D1 3.5 R 10_23_18 C C_R 1
AB-6 AB_D1 3.5 I 10_23_18 C C_I 1
               

@sudeep71
Copy link
Author

@nephantes ,

I tried using both underscore and even removing the complete date column, but i still cannot get it to work. The initial plot shows all my samples in spectrum of colors, but i go down to the PCA options/Colorfield and choose on any of those column headers as a option to color and it throws out
the same error!
Error in : Must request at least one colour from a hue palette

I have got the heatmap etc to work. Also where is the log file located? I could send it to you too, if it helps

@nephantes
Copy link
Member

nephantes commented Jan 19, 2019

Could you send me a sample dataset that I can recreate the problem?

@sudeep71
Copy link
Author

sudeep71 commented Jan 23, 2019 via email

@nephantes
Copy link
Member

Your sample names in the count_data and meta data file doesn't match. In count_data you have A_1, A_2... with underscore. In meta data file A-1, A-2,... with dash. If you use these two files it would work.
AB_meta.txt
count_data.txt

@sudeep71
Copy link
Author

sudeep71 commented Jan 24, 2019 via email

@nephantes
Copy link
Member

nephantes commented Jan 25, 2019

We will work on better error reporting while uploading the data. We are reading the data with a straight forward way by making the first column to row names and matching the column names in count data file with the sample names in the meta data file. First, we will report if there are duplicates in the first column and second, we will report if sample names do not match. Hopefully, this might eliminate some frustration in the next version. Please don't hesitate to contact if you have any suggestions to make this tool better.

@nephantes
Copy link
Member

nephantes commented Jan 27, 2019

I have just finalized error reporting in data upload. If there are duplicates in the first column of data file or un-matching column names in meta-data and count files or any missing columns in any rows will be reported. Hopefully, it will reduce the frustration in data upload. I pushed a new version 1.10.7 to bioconductor. It will be available in a couple of days. I also push it to github, if you don't want to wait for bioconductor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants