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

Heatmap layout #8

Open
Piergiorge opened this issue Feb 6, 2019 · 8 comments
Open

Heatmap layout #8

Piergiorge opened this issue Feb 6, 2019 · 8 comments
Labels

Comments

@Piergiorge
Copy link

Hello again!

I am using phylostratr to recover data about the conservation level (and age) of analogous enzymes in the human genome, and the software is fantastic for this purpose. In our work, the results produced with BLASTp, against a customized dataset (78 proteomes - https://www.ebi.ac.uk/reference_proteomes), were processed (considering evalue, Score, Identity, and coverage), and some missing data were observed. I don't have problems with these missing data, but it would be helpful if the color of the border in the heatmap was drawn in black (the matrix will represent the evalue, the presence, and absence of orthologs for each gene). Also, species with long names showed overlap with the heatmap.

What can I do to fix this?

Thank you very much!

@arendsee arendsee added the bug label Feb 6, 2019
@arendsee
Copy link
Owner

arendsee commented Feb 6, 2019

Hi @Piergiorge , thanks for the report. Could you send me the image of the matrix (you can email it to me if it is confidential)?

I've seen the long-name problem before. I "fixed" it by modifying the generated PDF in a vector editor (Inkscape). The rest of the names are there, but just behind the map. This is not a real solution, of course. I'll label this as a bug and see if I can fix it.

I'll look into the border pattern and get back with you.

@Piergiorge
Copy link
Author

Piergiorge commented Feb 6, 2019 via email

@arendsee
Copy link
Owner

arendsee commented Feb 8, 2019

@Piergiorge Sorry if I'm missing something, but I don't see the image. Did you attach it?

@Piergiorge
Copy link
Author

Excuse me. I made a mistake.

So ... this is the picture (I just removed the genes). In white are genomes 'without' orthologs.

bitmap

@arendsee
Copy link
Owner

arendsee commented Feb 9, 2019

Cool, I think what we need is some extra wiring for passing parameters. Currently, most of them are hardcoded. I'll do a bit of refactoring.

@fka21
Copy link

fka21 commented Jan 15, 2020

Hey @arendsee,

Has this issue been resolved? I also get an oddly looking heatmap with many warning messages regarding factoring. I have uploaded a picture of the first page. Also is there a way of shifting the tree with the genes? It would feel a bit more natural at least for me.

Screen Shot 2020-01-15 at 17 13 26

@arendsee
Copy link
Owner

Hi @fka21

Just to clarify, you would like to be able to move the tree to the left so that the names do not overlap with the heatmap?

Could you post the warnings you are getting?

@fka21
Copy link

fka21 commented Jan 16, 2020

Hi @arendsee

I'd like to move the tree edges to be the columns and the genes to become rows. Don't know if that is more clear, I might explain it really poorly.

Also the warning messages look like this:
Warning messages: 1: In [<-.factor(tmp, is.na(ordered), value = 5) : invalid factor level, NA generated 2: attributes are not identical across measure variables; they will be dropped 3: In [<-.factor(tmp, is.na(ordered), value = 5) : invalid factor level, NA generated
And so on.

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

No branches or pull requests

3 participants