I have a data.tsv
file (tabs separate entries). The full file can be found here.
The entries in the file look like this:
">173D:C" "TVPGVXTVPGV" "CCSCCCCCCCC"
">173D:D" "TVPGVXTVPGV" "CCCCCCCCSCC"
">185D:A" "SAXVSAXV" "CCBCCCBC"
">1A0M:B" "GCCSDPRCNMNNPDYCX" "CCTTSHHHHHTCTTTCC"
">1A0M:A" "GCCSDPRCNMNNPDYCX" "CGGGSHHHHHHCTTTCC"
">1A0N:A" "PPRPLPVAPGSSKT" "CCCCCCCCSTTCCC"
I am trying to read string entries into the data frame (into a matrix containing 3 columns):
data = data.frame(read.csv(file = './data.tsv', header = FALSE, sep = '\t'))
but only the first column is read. All other columns are empty.
I also tried different commands, such as
data = read.csv(file = './data.tsv', header = FALSE, sep = '\t')
data = read.csv(file = './data.tsv', sep = '\t')
data = data.frame(read.csv(file = './data.tsv'))
but without success. Can someone foresee why the input does not get read successfully?