annotate SMART/DiffExpAnal/DESeqTools/loadTargetFile.R @ 31:0ab839023fe4

Uploaded
author m-zytnicki
date Tue, 30 Apr 2013 14:33:21 -0400
parents 94ab73e8a190
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 }