list.celfiles: List CEL files.

Description Usage Arguments Value Note See Also Examples

View source: R/utils-general.R

Description

Function used to get a list of CEL files.

Usage

1
	list.celfiles(..., listGzipped=FALSE)

Arguments

...

Passed to list.files

listGzipped

Logical. List .CEL.gz files?

Value

Character vector with filenames.

Note

Quite often users want to use this function to pass filenames to other methods. In this situations, it is safer to use the argument 'full.names=TRUE'.

See Also

list.files

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
if (require(hapmapsnp5)){
  path <- system.file("celFiles", package="hapmapsnp5")

  ## only the filenames
  list.celfiles(path)

  ## the filenames with full path...
  ## very useful when genotyping samples not in the working directory
  list.celfiles(path, full.names=TRUE)
}else{
  ## this won't return anything
  ## if in the working directory there isn't any CEL
  list.celfiles(getwd())
}

Example output

No methods found in "RSQLite" for requests: dbGetQuery
Welcome to oligoClasses version 1.38.0
Warning message:
In read.dcf(con) :
  URL 'http://bioconductor.org/BiocInstaller.dcf': status was 'Couldn't resolve host name'
Loading required package: hapmapsnp5
character(0)
Warning message:
In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE,  :
  there is no package called 'hapmapsnp5'
Warning message:
system call failed: Cannot allocate memory 

oligoClasses documentation built on Nov. 8, 2020, 5:32 p.m.