Skip to content

Commit

Permalink
significant refactor of ProfilingTools fixes #35 fixes #34 fixes #33
Browse files Browse the repository at this point in the history
change log:
- exposed branch_length_function to Profile (defaults to 1/(depth in tree)
- added ability to not normalize the unifrac input vectors
- added better test data (that includes incorrectly formatted profiles)
- added test cases
  • Loading branch information
dkoslicki committed Jun 24, 2020
1 parent af20728 commit 428cd05
Show file tree
Hide file tree
Showing 3 changed files with 212 additions and 312 deletions.
12 changes: 6 additions & 6 deletions data/small1.profile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
@TaxonomyID:ncbi-taxonomy_DATE
@__program__:unknown
@@TAXID RANK TAXPATH TAXPATHSN PERCENTAGE
4 superkingdom 4 Archaea 0.029528
5 superkingdom 5 Viruses 0.004334
3 phylum 4|3 Archaea|Crenarchaeota 0.004226
2 class 4||2 Archaea||ZZZ 0.004226
1 class 4|3|1 Archaea|Crenarchaeota|Thermoprotei 0.004226
0 strain 5||||0 Viruses||||Viruses strain 0.3908 Sample6_49 p0
4 superkingdom 4 Archaea 80
5 superkingdom 5 Viruses 20
3 phylum 4|3 Archaea|Crenarchaeota 50
2 class 4||2 Archaea||ZZZ 20
1 class 4|3|1 Archaea|Crenarchaeota|Thermoprotei 50
0 strain 5||||0 Viruses||||Viruses strain 20 Sample6_49 p0
12 changes: 6 additions & 6 deletions data/small2.profile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
@TaxonomyID:ncbi-taxonomy_DATE
@__program__:unknown
@@TAXID RANK TAXPATH TAXPATHSN PERCENTAGE
4 superkingdom 4 Archaea 0.029528
5 superkingdom 5 Viruses 0.004334
3 phylum 4|3 Archaea|Crenarchaeota 0.004226
2 class 4||2 Archaea||ZZZ 0.004226
1 class 4|3|1 Archaea|Crenarchaeota|Thermoprotei 0.004226
0 strain 5|6|0|0|0 Viruses||||Viruses strain 0.3908 Sample6_49 p0
4 superkingdom 4 Archaea 80
5 superkingdom 5 Viruses 10
3 phylum 4|3 Archaea|Crenarchaeota 50
2 class 4||2 Archaea||ZZZ 20
1 class 4|3|1 Archaea|Crenarchaeota|Thermoprotei 50
0 strain 5|6|0|0|0 Viruses||||Viruses strain 10 Sample6_49 p0
Loading

0 comments on commit 428cd05

Please sign in to comment.