This is a test version of Biostars. For the public version, visit https://www.biostars.org.
DNA sequence complexity with a sliding window

Dear all,

I have fasta seguence like this:

CCCCAAAGACACCCCCCACAGTTTATGTAGCTTACCCCTTTT

I would like to calculate the complexity of this sequence based on sliding window of 3-4 nucleotides, and plot a graph with a score or something similar, in order to identify regions like "CCCC","TTTT","AAAA". Is there a software that does something similar? OR alternatively how can I do this?

r python dna

you need to mention window size and step size. In addition, please post how you would calculate the complexity. If you want to generate multiple sequences with defined window and step sizes from a single sequence, seqkit window function would help.

window size of 3-4 nucleotides and step of 1 nucleotide. I am not sure how to calculate the complexity, it is like I want to find and homopolymers in the sequence and plot them on a graph, so if there are homopolymers I would like to see a pick.

1 answer

You probably need the tool complex from EMBOSS.

Is it possible to download EMBOSS complex? or is it a web based tool? I am having trouble understanding it.

There are web interfaces available for EMBOSS programs from various places on the web but it is a command line tool. You can download the entire suite of tools from here.

The problem is I cannot open the link it does not work.

Which link are you referring to? Link in original answer is simply for the manual page of complex program. As for the link I provided above that is for the command line EMBOSS package you can download. It is not a ready to run program link.

I do not know why, I cannot open it.

ok I downloaded the link you sent we with wget,otherwise it does not open... thanks a lot!

Sorry, I cannot find a complex in the EMBOSS I downloaded...

Sigh. You are correct. It looks like that tool was removed from latest EMBOSS. Since original link seems to suggest that it was in v.6.0 you could try to download an older version from here: ftp://emboss.open-bio.org/pub/EMBOSS/old/

There is this review for similar tools see if you can find a copy to get additional options perhaps.

Could you please give me a link with a tar.gz file, I cannot open the link i can only download with wget

thanks, I could make it work, do you know where and if I can find a manual for emboss complex? it is not clear how it calculates the complexity.

there was a "bug" with the code, ftp links were not allowed to pass, this has been fixed.

Log in to answer this question.