Skip to content

Commit

Permalink
Merge pull request #7 from hannesbecher/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
hannesbecher authored Nov 30, 2021
2 parents 84fc8f1 + 7a0e50f commit 98f63c1
Show file tree
Hide file tree
Showing 12 changed files with 666 additions and 251 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
.Rhistory
.RData
.Ruserdata
Tetmer*tar.gz
.DS_Store
Tetmer.Rcheck/*
6 changes: 3 additions & 3 deletions Tetmer/DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
Package: Tetmer
Type: Package
Title: Fitting Population Parameters to k-mer Spectra
Version: 2.1.0
Version: 2.2.0
Author: Hannes Becher
Maintainer: The package maintainer <hannesbecher@gmx.de>
Description: This package contains a shiny app for fitting population parameters to k-mer spectra.
Maintainer: Hannes Becher <hannesbecher@gmail.com>
Description: A shiny app for fitting population parameters to k-mer spectra generated from whole-genome DNA sequencing data.
License: GPL (>= 3)
Depends:
R (>= 2.10),
Expand Down
4 changes: 4 additions & 0 deletions Tetmer/NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# Generated by roxygen2: do not edit by hand

S3method(plot,spectrum)
export(allowSegTet)
export(makeExpectedSpectrum)
export(read.spectrum)
export(setSliderRanges)
export(sliderRanges)
export(tetmer)
exportClasses(spectrum)
importFrom(methods,new)
Expand Down
2 changes: 1 addition & 1 deletion Tetmer/R/data.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Descriptioins of the data sets.
# Descriptions of the data sets.

#' K-mer spectrum of \emph{Euphrasia arctica} individual E028
#'
Expand Down
27 changes: 27 additions & 0 deletions Tetmer/R/formulae.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,33 @@ factorAll <- expression(

)

factorTse <- expression(
pal * c(
4*exp(-3*tth*tdiverg)*tth*(
-2*exp(tdiverg*(tth-2)) +
exp(3*tdiverg*tth) * (2+tth)^2 * (3 + tth) -
2*exp(2*tth*tdiverg)*(3+4*tth+tth^2)
),
2*exp(-1/2*tdiverg*(4+5*tth))*(
6*exp(tdiverg*tth/2)*tth+
exp(1/2*tdiverg*(4+5*tth)) * (2+tth)^2 * (3 + tth) +
2*exp(2*tdiverg+3/2*tdiverg*tth)*
(-6-8*tth+tth^2+tth^3)
),
8*exp(-tdiverg*(3+4*tth))*tth*(
-exp(tdiverg+2*tdiverg*tth)+
exp(3+tdiverg*(1+tth))*(3+tth)
),
2*exp(-2*tdiverg*(1+tth))*(
tth + 2*exp(tdiverg*(2+tth))*(3+tth)
)
)/ (1+tth) / (2+tth)^2 / (3+tth) +
(1-pal) * c(4*tth/(3+tth),
6*tth/(6+5*tth+tth^2),
8*tth/(6+11*tth+6*tth^2+tth^3),
6/(6+11*tth+6*tth^2+tth^3))
)

factorTraaa <- expression(
c(
3*tth / (2 + tth),
Expand Down
Loading

0 comments on commit 98f63c1

Please sign in to comment.