Description Usage Arguments Details Value Author(s) Examples
Subsets a pplace or jplace object based on the placement_id, the name of the placement or a regular expression of the name of the placement
1 | sub_pplace(x, placement_id = NULL, ech_id = NULL, ech_regexp = NULL, run_id = NULL)
|
x |
The pplace or jplace object to subset |
placement_id |
A vector of the placement_id to subset |
ech_id |
A vector of the names of the placement to subset |
ech_regexp |
A regular expression of the name of the placement to subset |
run_id |
A vector of run_id to subset |
When using placement_id, the subset is performed based on the placement_id column of the multiclass, placements, placement_positions, placement_names, placement_classifications, placement_evidence, placement_median_identities and placement_nbc data frames. When using ech_id and ech_regexp, the subset is performed from the multiclass$name column. When using run_id, the subset is performed based on the placements$run_id column.
A pplace object
pierre lefeuvre
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | data(pplace)
### subsetting using placement ids. Here placements 1 to 5
sub1 <- sub_pplace(pplace,placement_id=1:5)
sub1
### subsetting using sequenes ids
id <- c("GWZHISEQ01:514:HMCLFBCXX:2:1108:1739:60356_90",
"GWZHISEQ01:514:HMCLFBCXX:2:1114:13665:31277_80")
sub2 <- sub_pplace(pplace,ech_id=id)
sub2
### subsetting using a regular expression of sequence ids
sub3 <- sub_pplace(pplace,ech_regexp="^HWI")
sub3
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.