Skip to content

Commit

Permalink
test data updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jlmaier12 committed Dec 18, 2024
1 parent 763a934 commit a3850ed
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 29 deletions.
25 changes: 15 additions & 10 deletions R/VLPFractionSamplePileup.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,21 @@
#' pileup file with 100 bp windows. A subset of 10 contigs from the pileup file
#' were selected for this sample dataset. The contigs were chosen because their
#' associated read coverage patterns in the VLP-fraction exemplify TrIdent's
#' pattern-matching functionality across classifications: NODE_617:
#' Prophage-like, active/abundant, with spec transduction NODE_125:
#' Prophage-like, off one side of contig, no spec transduction NODE_352:
#' Sloping, left to right slope NODE_251: Sloping, right to left slope
#' NODE_2060: Sloping, right to left slope with start NODE_1401: None, no
#' pattern match NODE_62: Prophage-like, with spec transduction NODE_368:
#' Prophage-like, not homogeneously integrated/present, no spec transduction
#' NODE_560: HighCovNoPattern NODE_1165: None, filtered out To access the
#' sequencing data used to generate this pileup file and for additional details
#' on the assembly and mapping parameters, refer to the reference below:
#' pattern-matching functionality across classifications:
#' NODE_617:Prophage-like, active/abundant, with spec transduction
#' NODE_125:Prophage-like, off one side of contig, no spec transduction
#' NODE_352:Sloping, left to right slope
#' NODE_251: Sloping, right to left slope
#' NODE_2060: Sloping, right to left slope with start
#' NODE_1401: None, no pattern match
#' NODE_62: Prophage-like, with spec transduction
#' NODE_368: Prophage-like, not homogeneously integrated/present, no spec
#' transduction
#' NODE_560: HighCovNoPattern
#' NODE_1165: None, filtered out
#' To access the sequencing data used to generate this pileup file and for
#' additional details on the assembly and mapping parameters, refer to the
#' reference below:
#' Reference: Kleiner, M., Bushnell, B., Sanderson, K.E. et al. Transductomics:
#' sequencing-based detection and analysis of transduced DNA in pure cultures
#' and microbial communities. Microbiome 8, 158 (2020).
Expand Down
23 changes: 14 additions & 9 deletions R/WholeCommunitySamplePileup.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,20 @@
#' selected for this sample dataset. The contigs were chosen because their
#' associated read coverage patterns in the VLP-fraction exemplify TrIdent's
#' pattern-matching and characterization functionality across classifications:
#' NODE_617: Prophage-like, active/abundant, with spec transduction NODE_125:
#' Prophage-like, off one side of contig, no spec transduction NODE_352:
#' Sloping, left to right slope NODE_251: Sloping, right to left slope
#' NODE_2060: Sloping, right to left slope with start NODE_1401: None, no
#' pattern match NODE_62: Prophage-like, with spec transduction NODE_368:
#' Prophage-like, not homogeneously integrated/present, no spec transduction
#' NODE_560: HighCovNoPattern NODE_1165: None, filtered out To access the
#' sequencing data used to generate this pileup file and for additional details
#' on the assembly and mapping parameters, refer to the reference below:
#' NODE_617:Prophage-like, active/abundant, with spec transduction
#' NODE_125:Prophage-like, off one side of contig, no spec transduction
#' NODE_352:Sloping, left to right slope
#' NODE_251: Sloping, right to left slope
#' NODE_2060: Sloping, right to left slope with start
#' NODE_1401: None, no pattern match
#' NODE_62: Prophage-like, with spec transduction
#' NODE_368: Prophage-like, not homogeneously integrated/present, no spec
#' transduction
#' NODE_560: HighCovNoPattern
#' NODE_1165: None, filtered out
#' To access the sequencing data used to generate this pileup file and for
#' additional details on the assembly and mapping parameters, refer to the
#' reference below:
#' Reference: Kleiner, M., Bushnell, B., Sanderson, K.E. et al. Transductomics:
#' sequencing-based detection and analysis of transduced DNA in pure cultures
#' and microbial communities. Microbiome 8, 158 (2020).
Expand Down
2 changes: 1 addition & 1 deletion R/prophageLikeBorders.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#' @param classificationPatterns The pattern match information associated with
#' each contig classified as Prophage-like, Sloping, or HighCovNoPattern
#' @param i The index for the contig currently being assessed
#' @param windowsize The window size used to re-average read coverage pileups
#' @param windowSize The window size used to re-average read coverage pileups
#' @return List
#' @importFrom roll roll_sd
#' @keywords internal
Expand Down
Binary file modified data/TrIdentSampleOutput.rda
Binary file not shown.
Binary file modified data/VLPFractionSamplePileup.rda
Binary file not shown.
Binary file modified data/WholeCommunitySamplePileup.rda
Binary file not shown.
2 changes: 1 addition & 1 deletion man/prophageLikeBorders.Rd

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

Binary file modified tests/testthat/Rplots.pdf
Binary file not shown.
9 changes: 1 addition & 8 deletions tests/testthat/test-specializedTransductionID.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
test_that("specializedTransductionID", {
data("VLPFractionSamplePileup")
data("VLPFractionSamplePileup")
data("WholeCommunitySamplePileup")
TrIdent_results <- TrIdentClassifier(
VLPpileup = VLPFractionSamplePileup,
Expand Down Expand Up @@ -29,10 +29,3 @@ test_that("specializedTransductionID", {
copied_Specialized_transduction_NODE62$Plots$plot
)
})

# test_that("SpecializedTransduction_ID_Node_44", {
# TrIdent_results <- TrIdentClassifier(VLP_pileup=VLPFractionSampleData, WC_pileup=WholeCommunitySamplePileup, windowsize=1000, minblocksize=10000, maxblocksize=Inf, cleanup=TRUE)
# temp_Specialized_transduction_n44 <- SpecializedTransduction_ID(VLP_pileup=VLPFractionSampleData, transductionclassifications=TrIdent_results, specificcontig="NODE_44", noreadcov=500, spectranslength=2000, cleanup=TRUE)
# copied_Specialized_transduction_NODE44 <- Specialized_transduction_NODE44
# expect_equal(temp_Specialized_transduction_n44$Plots$plot, copied_Specialized_transduction_NODE44$Plots$plot)
# })

0 comments on commit a3850ed

Please sign in to comment.