[BioC] How to get the relative path with list.celfiles() from the oligo package?

Steve Lianoglou mailinglist.honeypot at gmail.com
Thu Aug 20 22:31:35 CEST 2009


Hi,

On Aug 20, 2009, at 4:24 PM, Peng Yu wrote:

> Hi,
>
> I run the following command. But it only gives the file names. I am
> wondering if there is a way to get the filename along with the
> directory name, i.e., 'data/ki10923.CEL', etc.
>
> Regards,
> Peng
>
>> list.celfiles('data/')
> [1] "ki10923.CEL" "ki10924.CEL" "ki10925.CEL" "ki10926.CEL"  
> "ki10928.CEL"
> [6] "wt10921.CEL" "wt10922.CEL" "wt10927.CEL" "wt10930.CEL"  
> "wt10980.CEL"

Look at the help for list.celfiles (or its source): it sends all of  
its args to the list.files function

In ?list.files you'll find that you just have to set full.names=TRUE

-steve

--
Steve Lianoglou
Graduate Student: Computational Systems Biology
   |  Memorial Sloan-Kettering Cancer Center
   |  Weill Medical College of Cornell University
Contact Info: http://cbio.mskcc.org/~lianos/contact



More information about the Bioconductor mailing list