Skip to content

Instantly share code, notes, and snippets.

View lczech's full-sized avatar
💮
*puts a flower in his hair*

Lucas Czech lczech

💮
*puts a flower in his hair*
View GitHub Profile
@lczech
lczech / merge_jplace_files.cpp
Created September 15, 2017 14:39
Merge jplace files, even if their reference trees have different branch lengths, using genesis v0.16.0 (https://github.com/lczech/genesis).
/*
Genesis - A toolkit for working with phylogenetic data.
Copyright (C) 2014-2017 Lucas Czech
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
@lczech
lczech / placement_classification_table.cpp
Last active September 30, 2016 06:25
Write all placements of a jplace file into a list, including the closted leaf name of the tree, using genesis v0.11.0 (https://github.com/lczech/genesis).
/*
Genesis - A toolkit for working with phylogenetic data.
Copyright (C) 2014-2016 Lucas Czech
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
@lczech
lczech / extract_branch_placements.cpp
Last active June 25, 2016 23:21
Extract lists of pquery names per branch of the reference tree, using genesis v0.7.0 (https://github.com/lczech/genesis).
/*
Genesis - A toolkit for working with phylogenetic data.
Copyright (C) 2014-2016 Lucas Czech
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,