trying to export DNA sequences into excel so that there are three nucleotides per column
1
0
Entering edit mode
4.5 years ago
ashrafm2 • 0

I have a sequence of DNA randomised in 15 amino acid positions. we have amplified the DNA and sequenced and aligned it using galaxy and have bamfiles . what we would like to do now is to break up the aligned DNA into three so that it is sorted in codons and export into excel as three nucleotides into a column. Is this possible for each sequence?

sequencing alignment assembly • 1.7k views
ADD COMMENT
2
Entering edit mode

enter image description here

ADD REPLY
0
Entering edit mode

That one actually inspired me in the past to change my profile picture :)

ADD REPLY
0
Entering edit mode
4.5 years ago
zx8754 11k

Please provide example input and expected output.

Here is an example using R:

x <- "12345678"
n <- 3
substring(x, seq(1, nchar(x), n), seq(n, nchar(x) + n - 1, n)) 
# [1] "123" "456" "78"

More solutions are at:

ADD COMMENT

Login before adding your answer.

Traffic: 2713 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6