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

Custom Content: Section name and description based on filename for .txt files #1550

Closed
BELKHIR opened this issue Sep 15, 2021 · 4 comments
Closed
Labels
custom-content waiting: example data Needs example data before we can proceed

Comments

@BELKHIR
Copy link

BELKHIR commented Sep 15, 2021

Hi,

Actually, the section name and description are automatically based on the filename for png, jpeg and jpg files with _mqc at the end of the filename.

Is it possible to extend this behavior to filenames ending with *_mqc.(yaml|yml|json|txt|csv|tsv|log|out|png|jpg|jpeg|html) ?

Many thanks

@ewels ewels changed the title Set the Section name and description be automatically based on the filename for txt files Custom Content: Section name and description based on filename for .txt files Jan 27, 2022
@ewels ewels added custom-content waiting: example data Needs example data before we can proceed labels Jan 27, 2022
@ewels
Copy link
Member

ewels commented Jan 27, 2022

Hi @BELKHIR,

Could you please provide a little more detail and ideally an example file? When I test with one of my example .txt files it does set the section name as the filename.

Phil

@BELKHIR
Copy link
Author

BELKHIR commented Jan 27, 2022

Hi @ewels,

I tested with your provided txt file and the result was fine !
However, it seems that this problem is related to the lack of header line in txt files.
ex this file of PCA eigenvalues will reproduce the problem :

axis1	3.65933584612439
axis2	1.548253919225
axis3	0.461137974231304
axis4	0.417858586883222
axis5	0.407933212752084
axis6	0.385368911026864
axis7	0.370025550609452
axis8	0.358294662093722

While if we add a header line there is no more problem with section name and description generation :

Axis	        Value
axis1	3.65933584612439
axis2	1.548253919225
axis3	0.461137974231304
axis4	0.417858586883222
axis5	0.407933212752084
axis6	0.385368911026864
axis7	0.370025550609452
axis8	0.358294662093722

Thank's a lot,

Khalid,

@ewels
Copy link
Member

ewels commented Jan 27, 2022

Thanks, confirmed my end - I'll take a look 👍🏻

@ewels ewels closed this as completed in 01457ca Jan 27, 2022
@ewels
Copy link
Member

ewels commented Jan 27, 2022

ok, found the culprit. Should be fixed in 01457ca

ewels added a commit to MultiQC/test-data that referenced this issue Jan 27, 2022
vladsavelyev pushed a commit to vladsavelyev/MultiQC_TestData that referenced this issue Apr 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
custom-content waiting: example data Needs example data before we can proceed
Projects
None yet
Development

No branches or pull requests

2 participants