Skip to content

Commit

Permalink
changes namenspace$
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasSchmidt97 committed Nov 15, 2017
1 parent e1158e7 commit 0c82d74
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 1 deletion.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export(findNN)
export(is.MS)
export(is.MSM)
export(jBenchmark)
export(jCreateConfiguration)
export(jCreateIMS)
export(jCreateMS)
export(jCreateMSM)
Expand Down
17 changes: 17 additions & 0 deletions R/deisotoper.R
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,23 @@ jWriteMGF <- function(filename, msm) {
status
}

#' Creates a Configuration (Java Object).
#'
#' @param aa Amino Acid Masses Vector
#' @param F1 Multiplier F1
#' @param F2 Multiplier F2
#' @param F3 Multiplier F3
#' @param F4 Multiplier F4
#' @param F5 Multiplier F5
#' @param DELTA Delta for clustering
#' @param ERRORTOLERANCE Errortolerance for scoring
#' @param DISTANCE Distance between two peaks
#' @param NOISE Noise filtering
#' @param DECHARGE Logical parameter, if decharge or not
#'
#' @return Configuration
#' @export jCreateConfiguration
#' @author Lucas Schmidt
jCreateConfiguration <- function(aa = c(), F1 = 0.8, F2 = 0.5, F3 = 0.1, F4 = 0.1, F5 = 0.1, DELTA = 0.003, ERRORTOLERANCE = 0.3, DISTANCE = 1.003, NOISE = 0.0, DECHARGE = FALSE) {
.jinit(parameters = "-XX:-UseGCOverheadLimit")
.jaddClassPath("inst/java/deisotoper.jar")
Expand Down
42 changes: 42 additions & 0 deletions man/jCreateConfiguration.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vignettes/score_plot.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ mtext(text ="DDA deisotoped Mascot-Scores", line = 1, adj = 0, col="red")

```{r fig.width=8, fig.height=8}
plot(x = pep_score1, y = pep_score2, col="#00000055", type="p", cex = 0.8, xlab = "Mascot-Score", ylab = "Mascot-Score", pch = 16)
abline(1, 1, col="#FF0000")
abline(0, 1, col="#FF0000")
```

0 comments on commit 0c82d74

Please sign in to comment.