search for: silygenotype

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

2013 Mar 07
2
How to transpose it in a fast way?
...anspose it and the output is a new like 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??? Tha...
2013 Mar 06
1
Transpose a big data file and write to a new file
...anspose it and the output is a new like 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??? Tha...