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

Stripping file names in all-vs-all comparision on first dot #1

Open
mkadlof opened this issue Jan 30, 2020 · 0 comments
Open

Stripping file names in all-vs-all comparision on first dot #1

mkadlof opened this issue Jan 30, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@mkadlof
Copy link

mkadlof commented Jan 30, 2020

In report for all-vs-all comparison filenames are used as label. However label is stripped on first dot.

For example:
chr8_all_interactions_res0.0328_ccds_202.bed

is stripped to:

chr8_all_interactions_res0

instead of:
chr8_all_interactions_res0.0328_ccds_202

Bug is probably in

names.append(path.basename(set).split('.')[0])

Consider using this:
https://docs.python.org/3.7/library/os.path.html#os.path.splitext

@Zojka Zojka added the bug Something isn't working label Mar 17, 2020
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