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

Changing order of genomes in DRAM distill HTML output #356

Closed
iwilkie opened this issue Jul 29, 2024 · 1 comment
Closed

Changing order of genomes in DRAM distill HTML output #356

iwilkie opened this issue Jul 29, 2024 · 1 comment

Comments

@iwilkie
Copy link

iwilkie commented Jul 29, 2024

Hi,

As the title says I would like to set an order to the genomes in DRAM's distill output HTML file, as I want the matrix to match my other data.

I looked into the HTML file, and found that the following string appears 14 times (matching the number of grouped columns in the output):

"sort": ["genome1", "genome2", "genome3", "genomen"]

I did a quick find and replace of that string with the order of genomes I wanted, however the order then seemed to be random. It was no longer alphabetical, but it also didn't match the custom order I wanted. Is there any actual way to change the order of genomes within the HTML file?

Here is the top of the genome names as per the standard DRAM distill output:
Screenshot 2024-07-29 at 10 53 18

I then modified the string in the html file (14 instances, replaced using find and replace):

"sort":["GCF_900097105.1_WK001_genomic", "GCF_018779965.1_ASM1877996v1_genomic", "GCA_021200315.1_ASM2120031v1_genomic", "GCA_021202695.1_ASM2120269v1_genomic", "GCA_020859585.1_ASM2085958v1_genomic", "GCA_947039485.1_ERR3139992_bin.1_metaWRAP_v1.3_MAG_genomic", ...]

And this was the resulting list of genome names:
Screenshot 2024-07-29 at 10 53 24

I guess something else modifies the list of genome names, and it's not just the "sort" entry in the HTML file?

Thanks!

@iwilkie iwilkie closed this as completed Jul 29, 2024
@iwilkie iwilkie reopened this Jul 29, 2024
@iwilkie
Copy link
Author

iwilkie commented Jul 31, 2024

This is the correct way of changing the genome order in the HTML output, somehow dram merge wasn't pulling all of the genomes, so the list I was pasting in had more genomes than the annotations files. I fixed the merge and now it works.

@iwilkie iwilkie closed this as completed Jul 31, 2024
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

1 participant