omicsplayground icon indicating copy to clipboard operation
omicsplayground copied to clipboard

Empty space in the Samples input file causes an error message

Open AxelBigOmics opened this issue 2 years ago • 9 comments

This is something that can be fixed manually, but Ivo suggested adding a check to remove it. Whenever I leave an empty space before or after a phenotype descriptor (see attached figure), the platform complains that there are no samples for a given phenotype.

I guess this could be solved informatically by removing empty spaces before/after the phenotype description.

image

AxelBigOmics avatar Mar 28 '22 14:03 AxelBigOmics

We could simply trim whitespaces in the upload process. I can look into this once I am done with the current issues.

stefanreifenberg avatar Mar 29 '22 06:03 stefanreifenberg

Sounds good. Thanks for the prompt reply, Stefan!

AxelBigOmics avatar Mar 29 '22 07:03 AxelBigOmics

Could you please provide me an example file with the whitespace error to reproduce the issue

stefanreifenberg avatar Mar 29 '22 12:03 stefanreifenberg

Sure thing. Here are the original red counts file and the samples file with the spaces.

counts.csv samples_error.csv

AxelBigOmics avatar Mar 29 '22 13:03 AxelBigOmics

I used these files and did not get an error so far. What do I have to do to reproduce the error described above? Screenshot 2022-03-29 at 15 40 27

stefanreifenberg avatar Mar 29 '22 13:03 stefanreifenberg

You should try to create pairwise comparisons using the "Contrasts" tab with either the "Gender" or "Disease" phenotypes. That is where an error shows up.

AxelBigOmics avatar Mar 29 '22 13:03 AxelBigOmics

Ok, can you also please send me the contrasts.csv file?

stefanreifenberg avatar Mar 29 '22 13:03 stefanreifenberg

I would, except I normally generate it through the platform and because of the error message, I cannot create a contrast.csv file with the platform. I've included the actual error message below.

image

AxelBigOmics avatar Mar 29 '22 15:03 AxelBigOmics

@stefanreifenberg is this done? As you said, after loading CSV we can use trimws().

ivokwee avatar Apr 08 '22 08:04 ivokwee

This issue is stale because it has been open for 30 days with no activity. It will close in 14 days.

github-actions[bot] avatar Jan 04 '23 23:01 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Jan 19 '23 23:01 github-actions[bot]