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

Extra 'simplify' parameter needed in subset_metabarlist #16

Open
grossebusedu38 opened this issue Aug 21, 2020 · 0 comments
Open

Extra 'simplify' parameter needed in subset_metabarlist #16

grossebusedu38 opened this issue Aug 21, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@grossebusedu38
Copy link
Collaborator

subset_metabarlist <- function(metabarlist, table, indices)

would become

subset_metabarlist <- function(metabarlist, table, indices, simplify=TRUE)

=================

when simplify=FALSE, do not remove any columns in the reads table:

reads <- reads[, colSums(reads) > 0, drop = F]

would become

reads <- reads[, (colSums(reads) > 0) & simplify, drop = F]

=================

usefull when you want to compare the reads table of two subseted metabarlist that were originally the same:

Example:

soil_euk2 <- soil_euk
soil_euk2$reads <- corrected

metabaR::ggpcrtag(soil_euk2)
metabaR::ggpcrtag(soil_euk)

s1<- subset_metabarlist(soil_euk, 'pcrs', {v <- soil_euk$pcrs$control_type=="sequencing";v[is.na(v)]<-F;v})
s2 <- subset_metabarlist(soil_euk2, 'pcrs', {v <- soil_euk$pcrs$control_type=="sequencing";v[is.na(v)]<-F;v})

s(1|2)$reads and s(1|2)$motus tables are not easily comparable

@grossebusedu38 grossebusedu38 added the enhancement New feature or request label Aug 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant