Should the permutation be happen separetely for each chromosome. That is are chromosomes exchangeable.
species
species
build
the build of the reference
chr.names
names of the chromosomes to use
mask.gaps
should the gaps (Ns) in the human reference be ignored as potential start points. This drammatically increases memory and run time but is more appropriate in almost all settings. It defaults to off
gaps.file
database file of gaps. Defaults to Homo sapiens Hg19 gap.txt.gz file available through UCSC
mask.repeats
should the repeats from repeatMasker be ignored as potential start points. This drammatically increases memory and run time but is more appropriate in almost all settings. By default it's off
repeats.file
database file of repeats as supplied by UCSC containing RepMasker data e.g rmsk.txt.gz
sort.output
should the output be sorted
is.checked
Has the input data already be tested for validity. This is often done once before multiple permutations.
check.zero.based
should 0 based coordinates be checked
check.chr
should chr prefix be checked
check.valid
should the region be checkded for integerity
verbose
should log messages and checking take place
Author
Daryl Waggott
Details
1. Sampling with replacement on region length.
2. Sampling with replacement on start positions. Positions that contain Ns in the reference are set to 0 weight during sampling.
Regions that overlap the end of a chromosome or gap are trimmed.
Steps 1 and 2 are done within chromosomes if stratify.by.chr is set to true.