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

[Question] Graphical representation of taxdumps #95

Open
fgvieira opened this issue Mar 20, 2024 · 2 comments
Open

[Question] Graphical representation of taxdumps #95

fgvieira opened this issue Mar 20, 2024 · 2 comments

Comments

@fgvieira
Copy link

fgvieira commented Mar 20, 2024

Is it possible to generate a graphical representation of a taxdump?

Most taxdumps are huge and impractical to represent graphically but, sometimes when testing, users work with reduced taxdumps that could be more amenable to a graphical representation. For example, something that would just convert taxdump to dot format and then to SVG:

awk -F"\t" 'BEGIN{print "digraph G {"} NR==FNR{print $3" -> "$1";"; labels[$1]=$1"\n"$5} NR!=FNR{print $1" [label=\""$3"\n"labels[$1]"\"];"} END{print "}"}' nodes.dmp names.dmp | dot -Tsvg > taxdump.svg

Alternatively, and to be able to work with the full taxdump, one could also think of an interactive html document similar to the one in Taxallnomy.

@shenwei356
Copy link
Owner

The network (tree) is too big to show.

@fgvieira
Copy link
Author

Yes, if we try to represent everything, but the Taxallnomy link I linked above just represents parts of the tree at a time.

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

2 participants