annotate SMART/DiffExpAnal/DESeqTools/loadTargetFile.R @ 18:94ab73e8a190

Uploaded
author m-zytnicki
date Mon, 29 Apr 2013 03:20:15 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
18
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
1 # loadTargetFile
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
2 # loads file containing sample info
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
3
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
4 # input : targetFile Name
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
5 # output : target
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
6
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
7 # created Feb 6th, 2012
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
8 # Marie-Agnes Dillies
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
9
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
10
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
11 loadTargetFile <- function(targetFile, header){
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
12 if(header!=0){
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
13 return(read.table(targetFile, header=T, sep="\t"))
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
14 }else if(header==0){
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
15 return(read.table(targetFile, sep="\t"))
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
16 }
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
17 }