Linked sequences#190
Conversation
|
needs qiime2/q2-types#388 |
|
disclaimer: the |
|
One outstanding decision is how we want to restructure the stats table to accommodate these changes. |
| } | ||
|
|
||
| # combine the merged and unmerged/concatenated feature tables | ||
| if(inp.dirR !='NULL' && retain.unmerged){ |
There was a problem hiding this comment.
do we need inp.dirR guard here
| ### Remove chimeras | ||
| cat("5) Remove chimeras (method = ", chimeraMethod, ")\n", sep="") | ||
| if(chimeraMethod %in% c("pooled", "consensus")) { | ||
| if(chimeraMethod %in% c("pooled", "consensus") && ncol(seqtab) > 0) { |
There was a problem hiding this comment.
is ncol(seqtab) > 0 a necessary guard here?
| ), | ||
| abundance=unmerged.j$abundance, | ||
| stringsAsFactors=FALSE | ||
| ) |
There was a problem hiding this comment.
think about whether we can condense at the sample level instead of below separately. Make sure we still have enough information to create e.g. a number unmerged column in the stats table
| } | ||
|
|
||
| # combine the merged and unmerged/concatenated feature tables | ||
| if(inp.dirR !='NULL' && retain.unmerged){ |
There was a problem hiding this comment.
this entire block will go away if we do sample level table merging
| # single space-delimited representation | ||
| if(length(unmerged.ids) > 0){ | ||
| unmerged.keep <- intersect(colnames(seqtab.nochim), unmerged.ids) | ||
| if(length(unmerged.keep) > 0){ |
There was a problem hiding this comment.
We need to make sure we ONLY replace the 'N' * 10 that we introduced and not any 'N' * 10s that may have already been present in either the forward or reverse (credit to @Oddant1 for noticing this)
There was a problem hiding this comment.
at the very least we error, but we know what the forward and reverse sequences are, so we can deduce what the artificially introduced 'N' * 10 is and remove only it
Oddant1
left a comment
There was a problem hiding this comment.
@colinvwood's comments came from the review. Needed to look it over with him to make sure I knew what the R was doing.
Allow
denoise-pairedto rescue and return unmerged sequences