Function generates intergenic coordinates from a UCSC genePred table.
It allows users to specify the genePred data source, the relative position
and minimum length for intergenic regions, and whether to return the results
as a Coordinate
object or a data.table
.
generateIntergenicCoor(
genepred,
genome.name,
fasta.path,
igr.rel.pos = c(5000, 7500),
igr.min.length = 150,
return.coor.obj = FALSE
)
Intergenic coordinates as a data.table
or Coordinate
object.
UCSC genePred table or database name ("refseq" or "gencode").
UCSC genome name (e.g., hg38, mm39).
Path to a directory of user-provided genome FASTA files or the destination to save the NCBI/UCSC downloaded reference genome files.
Intergenic relative position, defaults to c(5000, 7500).
Minimum length for intergenic regions, default is 150.
Return results as a Coordinate
object? Default FALSE.