I have a very easy question I think, I have a DNAStringSet, for example:
DNAStringSet object of length 5:
width seq names
[1] 1701 ATGAAGGCAAACCTACTGGTCCTGTTATGTGCACTT...CTAATGGATCTTTGCAGTGCAGAATATGCATCTGA Seq1
[2] 1701 ATGAAGGCAAACCTACTGGTCCTGTTATGTGCACTT...CTAATGGATCTTTGCAGTGCAGAATATGCATCTGA Seq2
[3] 1701 ATGAAGGCAAACCTACTGGTCCTGTTATGTGCACTT...CTAATGGATCTTTGCAGTGCAGAATATGCATCTGA Seq3
[4] 1701 ATGAAGGCAATACTAGTAGTTCTGCTATATACATTT...CTAATGGGTCTCTACAGTGTAGAATATGTATTTAA Seq4
[5] 1701 ATGAAGGCAAACCTACTGGTCCTGTTATGTGCACTT...CTAATGGATCTTTGCAGTGCAGAATATGCATCTGA Seq5
And I would like to transform that into a data frame, eg: Pos Seq1 Seq2 Seq3 Seq4 Seq5 1 A A A A A 2 T T T T T ....etc
But I can't see to find a way to do efficiently, any suggestions? I am using a combination of extractAt and other things, but everything seems very cumbersome.
(Ultimately, I want to also remove identical columns and export it all into a csv file, but I haven't been able to go past this step to my satisfaction)
Thank you
Thank you Hervé, this is exactly what I needed.