Description Usage Arguments Details Value Examples
methods for filter and trim tracks based on track length.
1 2 3 |
trackll |
a list of track lists. |
filter |
range of possible track lengths to keep |
trimmer |
range of track lengths allowed in output, otherwise trimmed. |
filterTrack() is used to filter out tracks that has length within a specified range (default 7~Inf). On the other hand, despite the lengths of tracks, trimTrack() is used to trim /cutoff all tracks to a specified range (default 1~32).
trackll filtered or trimmed tracks.
len list of track lengths.
1 2 3 4 5 6 7 8 9 10 11 12 13 | folder=system.file('extdata','SWR1',package='sojourner')
trackll=createTrackll(folder=folder, input=3)
trackll.filter=filterTrack(trackll,filter=c(7,Inf))
trackll.trim=trimTrack(trackll,trimmer=c(1,20))
# see the min and max length of the trackll
# trackLength() is a helper function output track length of trackll
lapply(trackLength(trackll),min)
lapply(trackLength(trackll.filter),min)
lapply(trackLength(trackll),max)
lapply(trackLength(trackll.trim),max)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.