Skip to content

Commit

Permalink
Replace treetime submodule by conda one
Browse files Browse the repository at this point in the history
- Remove the submodule
- Add treetime in conda environment
- Fix import of treetime
  • Loading branch information
bebatut committed Dec 8, 2017
1 parent c3b69ae commit 2ff20ed
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 21 deletions.
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
[submodule "treetime"]
path = treetime
url = https://github.com/neherlab/treetime
23 changes: 11 additions & 12 deletions panX-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@ channels:
- conda-forge
dependencies:
- python=2.7.13
- biopython=1.66
- numpy=1.10.4
- scipy=0.16.1
- pandas=0.16.2
- ete2=2.3.10

- diamond=0.8.36
- fasttree=2.1.9
- mafft=7.305
- mcl=14.137
- raxml=8.2.9

- biopython
- numpy
- scipy
- pandas
- ete2
- diamond
- fasttree
- mafft
- mcl
- raxml
- treetime
8 changes: 4 additions & 4 deletions scripts/sf_gain_loss.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
import os,sys,copy;import numpy as np
from collections import defaultdict
sys.path.append('./')
from treetime.treetime import treeanc as ta
from treetime.treetime.gtr import GTR
from treetime.treetime import io
from treetime.treetime import seq_utils
from treetime import treeanc as ta
from treetime.gtr import GTR
from treetime import io
from treetime import seq_utils
from Bio import Phylo, AlignIO
from sf_miscellaneous import write_json, write_pickle
from sf_geneCluster_align_makeTree import load_sorted_clusters
Expand Down
2 changes: 1 addition & 1 deletion scripts/sf_geneCluster_align_makeTree.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ def build(self, root='midpoint', raxml=True, fasttree_program='fasttree', raxml_

if treetime_used:
# load the resulting tree as a treetime instance
from treetime.treetime import TreeAnc
from treetime import TreeAnc
self.tt = TreeAnc(tree=out_fname, aln=self.aln, gtr='Jukes-Cantor', verbose=0)
# provide short cut to tree and revert names that conflicted with newick format
self.tree = self.tt.tree
Expand Down
1 change: 0 additions & 1 deletion treetime
Submodule treetime deleted from 66e444

0 comments on commit 2ff20ed

Please sign in to comment.