Skip to content

Commit

Permalink
Improve show method for TsIO objects
Browse files Browse the repository at this point in the history
Add number of designed primers to printed info. Add newline at the end of printed info.
  • Loading branch information
argschwind committed Mar 16, 2020
1 parent b48db18 commit 22a6034
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: TAPseq
Type: Package
Title: Targeted scRNA-seq primer design for TAP-seq
Version: 0.99.4
Version: 0.99.5
Authors@R: c(
person("Andreas", "Gschwind", email = "andreas.gschwind@stanford.edu",
role = c("aut", "cre"), comment = c(ORCID = "0000-0002-0769-6907")),
Expand Down
7 changes: 5 additions & 2 deletions R/TsIO_classes.R
Original file line number Diff line number Diff line change
Expand Up @@ -628,12 +628,15 @@ setMethod("show", "TsIO", function(object) {

prod_size <- product_size_range(object)

primers <- length(tapseq_primers(object))
if (primers == 0) primers <- "None"

cat(is(object)[[1]], " instance", "\n",
" ", length(sequence_template(object)), " bp sequence template", "\n",
" Sequence ID: ", sequence_id(object), "\n",
" Beads oligo: ", as.character(beads_oligo), "\n",
" Right primer: ", as.character(reverse_primer), "\n",
" Specified product size range: ", prod_size[1], "-",
prod_size[2], " basepairs",
" Specified product size range: ", prod_size[1], "-", prod_size[2], " basepairs", "\n",
" Designed left primers: ", primers, "\n",
sep = "")
})

0 comments on commit 22a6034

Please sign in to comment.