Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Counting and formatting errors in print() output #56

Open
mikemc opened this issue Oct 14, 2020 · 0 comments
Open

Counting and formatting errors in print() output #56

mikemc opened this issue Oct 14, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@mikemc
Copy link
Owner

mikemc commented Oct 14, 2020

If there is 1 too many samples to display, then "variable" is used instead of "sample"; and it also seems that the claimed number of additional samples can be off.

library(speedyseq)
#> Loading required package: phyloseq
#> 
#> Attaching package: 'speedyseq'
#> The following objects are masked from 'package:phyloseq':
#> 
#>     filter_taxa, plot_bar, plot_heatmap, plot_tree, psmelt, tax_glom,
#>     tip_glom, transform_sample_counts

data(soilrep)

otu_table(soilrep)[1:5, 1:11]
#> OTU Table:          [ 5 taxa and 11 samples ]:
#> Taxa are rows
#>            a_C026 a_C066 a_C070 a_C074 a_C075 a_C077 a_C079 a_C081 a_C082 a_C083
#> OTU_R0          0      0      0      0      1      1      0      0      0      0
#> OTU_R1          3      0      7      3      2      0      0      2      1      3
#> OTU_R10         0      0      0      0      0      0      0      0      0      0
#> OTU_R100        0      1      2      1      0      0      1      0      0      1
#> OTU_R10000      0      0      0      0      0      0      0      0      0      0
#> # … with 1 more variable
otu_table(soilrep)[1:5, 1:20]
#> OTU Table:          [ 5 taxa and 20 samples ]:
#> Taxa are rows
#>            a_C026 a_C066 a_C070 a_C074 a_C075 a_C077 a_C079 a_C081 a_C082 a_C083
#> OTU_R0          0      0      0      0      1      1      0      0      0      0
#> OTU_R1          3      0      7      3      2      0      0      2      1      3
#> OTU_R10         0      0      0      0      0      0      0      0      0      0
#> OTU_R100        0      1      2      1      0      0      1      0      0      1
#> OTU_R10000      0      0      0      0      0      0      0      0      0      0
#> # … with 7 more samples (columns)

Created on 2020-10-14 by the reprex package (v0.3.0)

@mikemc mikemc added the bug Something isn't working label Oct 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant