search for: geno_t

Displaying 2 results from an estimated 2 matches for "geno_t".

Did you mean: genet
2013 Mar 07
2
How to transpose it in a fast way?
...e that AA CC ............ AC CC............ AA CT............. AA CT......... .................... .................... AT TC............. The keypoint is I can't read it into R by read.table() because the data is too large,so I try that: c<-file("silygenotype.txt","r") geno_t<-list() repeat{ line<-readLines(c,n=1) if (length(line)==0)break #end of file line<-unlist(strsplit(line,"\t")) geno_t<-cbind(geno_t,line) } write.table(geno_t,"xxx.txt") It works but it is too slow ,how to optimize it??? Thank you Yao He ?????????????????...
2013 Mar 06
1
Transpose a big data file and write to a new file
...e that AA CC ............ AC CC............ AA CT............. AA CT......... .................... .................... AT TC............. The keypoint is I can't read it into R by read.table() because the data is too large,so I try that: c<-file("silygenotype.txt","r") geno_t<-list() repeat{ line<-readLines(c,n=1) if (length(line)==0)break #end of file line<-unlist(strsplit(line,"\t")) geno_t<-cbind(geno_t,line) } write.table(geno_t,"xxx.txt") It works but it is too slow ,how to optimize it??? Thank you Yao He ?????????????????...