combineTrackll-methods: combineTrackll

Description Usage Arguments Details Value Examples

Description

Combine multiple tracklls into one trackll.

Usage

1
combineTrackll(trackll,name='combined trackll',merged=TRUE)

Arguments

trackll

The tracklls to be combined together.

name

a character string given to set the 'names' attribute for the combined trackll

merged

An Logical indicate if the tracklls to combine are merged or not.

Details

Combine multiple track lists (tracklls) from multiple folders into one trackll, i.e. combining track infomation from files in multiple folders (replicates) together as if they are in one folder. The tracklls can be either merged or un-merged.

The name argument sets the 'names' attribute for the combined trackll, which will be used in the same way as the folder names for the original tracklls, e.g., displayed as legend when plotting Dcoef or MSD for the combined trackll.

Value

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# Generate trackll, and process, 
# e.g. mask region of interest, merge tracks from multiple files.
folder1=system.file('extdata','HSF',package='sojourner')
trackll1=createTrackll(folder1,input=3, cores = 2)
trackll1=maskTracks(folder1,trackll1)
trackll1=mergeTracks(folder1,trackll1)

folder2=system.file('extdata','HSF_2',package='sojourner')
trackll2=createTrackll(folder2,input=2, cores = 2)
trackll2=maskTracks(folder2,trackll2)
trackll2=mergeTracks(folder2,trackll2)

# Combine the tracklls together, input trackll names when prompted,
trackll=combineTrackll(trackll=c(trackll1,trackll2),merged=TRUE)

sheng-liu/sojourner documentation built on April 2, 2021, 2:30 a.m.