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

First line of consensus map not parsed #12

Open
donovan-h-parks opened this issue May 13, 2014 · 0 comments
Open

First line of consensus map not parsed #12

donovan-h-parks opened this issue May 13, 2014 · 0 comments

Comments

@donovan-h-parks
Copy link
Contributor

The current code structure results in the first line of the consensus map not being properly parsed. For example, the first few lines of decorate() in t2t.py are:

seed_con = consensus_map.readline().strip().split('\t')[1]
nl.determine_rank_order(seed_con)
tipname_map = nl.load_consensus_map(consensus_map, append_rank)

This aims to setup the RANK_ORDER variable within nlevel.py before calling load_consensus_map(). The issue is that the first line of code reads out the first line from consensus_map. As a result, the load_consensus_map() function misses the first taxa. I suggest that the load_consensus_map() function actually call determine_rank_order() in order to avoid this issue.

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