Replace The Path to a Fragment File In a Signac Object
Source:R/bb_fragments.R
bb_fragment_replacement.Rd
Often you will wish to package a Signac object or share the object to someone who does not have access to the same directories as you. This is a problem because one of the internal sub-objects, the Fragment object, holds a file path to a directory containing an atac fragments file and its .tbi intex. Often this file will only be accessbile to you. This function allows you to replace the fragments file path that is held internally within the Signac object. Just copy the files to a shared location and provide that file location to the function.
For Signac objects with multiple internal Fragments objects, provide vector of file paths.
For packaged fragments files, use system.file or fs::path_package to access this, usually from extdata.
See also
c("Cells.Fragment", "CountFragments", "CreateFragmentObject", "FilterCells", "Fragment-class", "Fragments", "Fragments", "SplitFragments", "UpdatePath", "ValidateCells", "ValidateFragments", "ValidateHash", "head.Fragment", "subset.Fragment")
, CreateFragmentObject
cli_abort
file_access
map2