Changelog
Source:NEWS.md
plyxp 1.7.10
-
vec_group_loc()performance for DFrame objects has improved. - summarize should now work with CompressedList objects.
plyxp 1.7.9
-
vec_group_id()andvec_group_loc()now have specialized methods for S4 “CompressedList” virtual classes. - The IRanges packed is now imported because SummarizedExperiment already imports this package.
plyxp 1.7.8
- summarizing with a DFrame result should work as expected
- New “Slicing” section in the vignette demonstrating the
slice_*()functions on the airway dataset. Vignette section headings were standardized to sentence case, and thegroup_by()section was renamed “Grouping”.
plyxp 1.7.7
-
various
slice_*()functions are now supported.slice_min()/slice_max- slice therows()orcols()contexts.-
NOTE: due to how these functions are called, either the
rows()or thecols()context can be used independently. They may only be used together if eithernorpropargs are named. In other words the following does not work:but the following does:
slice_head()/slice_tail()- slice the head or tail of a context.-
NOTE: for a data.frame, these S3 generics do not use the
...argument. ForPlySummarizedExperimentobjects, the...is used to specify therows()orcols()contexts, and requires these expressions to be empty. You must also explicitly name thenorpropargument.slice_head(xp, rows(), n = 1) slice_tail(xp, cols(), n = 1) slice_head(xp, rows(), cols(), n = 2)
slice_sample()- sample rows and/or columns.-
NOTE: similar to
slice_head()/slice_tail(), empty context calls can be used to indicate which contexts to sample. Additionally, if they are not empty, then the value is implied to be theweight_byargument for that context.# uniform sample of both slice_sample(xp, rows(), cols(), n = 2) # sample by weighting rows by `foo`, and cols by `bar` slice_sample(xp, rows(foo), cols(bar), n = 2) # sample by weighting rows by `foo`, and uniform cols slice_sample(xp, rows(foo), cols(), n = 2) # sample by weighting rows by `foo` slice_sample(xp, weight_by = rows(foo), n = 2)
plyxp 1.7.6
-
group_by.PlySummarizedExperimentnow accepts S4Vector objects. As a result,plyxp_groups, the structure returned bygroup_data.PlySummarizedExperimentholdsS4Vectors::DataFrameobjects instead of tibbles.
plyxp 1.7.5
across()switches to proper context if user specifies a context function.-
ungroup()can now drop entirerows()orcols()contexts, without touching the other: group_by()allows .features and .samples in the rows and cols contexts respectively.group_by().add parameter now works as expectedA minor memory leak was discovered due to an unexpected interaction of inlining data into function bodies and the R JIT compiler. This has now been fixed within the offending internal function:
add_bind()now supports DataFrames as columns within the
rowData()andcolData()of aSummarizedExperimentobject.plyxp is less strict about the return type in the assays context. If the object has the correct dimensions no coersion occurs. If the object is 1D scalar, it creates a simple matrix replicated with that value. Otherwise the size is checked to either be equal to the expected 2D (matrix), or a multiple of it (array).
plyxp 1.7.4
-
method(vec_slice, class_DF)now properly slices the rownames instead of the elementMetadata - Added Preprint to README
- fixed show_tidy bug with “vec_restore.vec_phantom”, now using internal
vec_sliceto extract rows - Addining a
vec_sizevariant for support of vec_phantom
plyxp 1.5.5
-
plyxp::vec_ptype_commonshould now be aware of the vctrs_partial class.
plyxp 1.4.2
- fixed bug when summarizing a plyxp object by the rows and not columns would result in assays not being constructed in the correct order.
plyxp 1.3.11
-
summarize.PlySummarizedExperimentnow allows no assay context arguments. - dynamic dots are now permitted within context functions. Namely doing something like
rows("{foo}" := bar)wherefoois some character string, will now work properly - allow scalar values in
arrange()and ungrouped instances. -
plyxpnow exportsdplyr::group_splitand a method forPlySummarizedExperimentobjects -
slice.PlySummarizedExperimentwill now remove indices that are outside of each group - more inline with howdplyr::slice()works.
plyxp 1.3.5
- Corrected issue where using
group_by(xp, rows(foo = some_scalar))would not create proper groupings - Corrected issue where scalars would capture an empty evaluation environment, which would cause any context specific transforms to fail. This was corrected by checking if the quo also has a transformation set, and if so, changes the environment (if empty) to the calling env.
plyxp 1.3.2
-
slice()has been added as a supported function forPlySummarizedExperimentobjects. - Various methods that were not yet implement for
PlySummarizedExperimentare now available:- metadata/
metadata<- - rownames/
rownames<- - colnames/
colnames<- - dimnames/
dimnames<- - nrow/ncol
- metadata/
- Corrected issue in which across was not working in the default
assayscontext. - can now use
cols(),rows()orassays()as the first argument ofacross()to specify which cols from potentially different contexts to pull data from.
plyxp 1.2.5
-
pull.PlySummarizedExperiment()now usestidyselect::vars_pull()under the hood, which should have more consistent behavior to the original.
plyxp 1.2.4
- dplyr functions on plyxp objects now allow for empty arguments, which will be ignored.
-
pull.PlySummarizedExperiment()now allows for pulling the names of the rowData or colData by specifyingrows(.features)andcols(.samples)respectively.
plyxp 1.1.1
- added
plyxp_on()as a way to have further interior mutability on the SummarizedExperiment class.
plyxp 0.99.24
- Since
plyxpdoes not have a conflict withtidySummarizedExperimentanymore, we have removed package startup messages warning of potential conflicts.
plyxp 0.99.21
- Fixed documentation of
?plyxp::mutateand other dplyr functions reexported byplyxp. -
PlySummarizedExperimentshould be able to hold anySummarizedExperimentobject
plyxp 0.99.20
- plyxp now wraps
SummarizedExperimentin a shell class namedPlySummarizedExperimentto avoid conflicts withtidySummarizedExperiment.- Use
PlySummarizedExperiment()ornew_plyxp()to create a new object. - Use standard Generics
se()andse<-()to get and set the underlyingSummarizedExperimentobject. - plyxp
dplyrverbs are now defined forPlySummarizedExperimentobjects instead ofSummarizedExperimentobjects. -
PlySummarizedExperimentuses enhanced printing methods to displaySummarizedExperimentobjects in a tidy format.
- Use
plyxp 0.99.18
- messages checking for conflicts use
cli::methods for pretty printing - Vignette typo correction
plyxp 0.99.13
-
print.SummarizedExperimenthas been renamed toshow_tidy.SummarizedExperimentandshow_tidyis exported as an S3 generic. - Adjust show function display original show method by default. using
show_tidy()is now opt-in via options oruse_show_tidy(). - Verbose messages checking if
tidySummarizedExperimentis already attached or ever becomes loaded withplyxp. - change README and Vignette explaining this package provides an alternative approach to
tidySummarizedExperimentto manipulatingSummarizedExperimentobjects. For now they are exclusive in their functionality, but there may be plans to reconsile conflicts in the future!