This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to generate this line diagram?

Hi all,

I want to generate a figure like that given below. This fig mainly shows amino acid range locations along the sequence length of a protein. link of fig

The length of protein is given in file1.txt as:

NP_123456.4: 110

In one file, centain range for that protein (file2.txt) is given as:

NP_123456.4: 30-45, 65-80
...
.

In another file (file3.txt), for the same protein:

NP_123456.4: 35, 47-50, 58-59
....
..

In third file (file4.txt), for the same protein:

NP_123456.4: 38, 52, 69-88
..

From these values, please suggest me how can I generate this type of plot? I will prefer script based approach(R, perl, python, html) rather than an software package.

Thanks

perl python r html

2 answers

I think the R package Gviz will have options in the direction you are looking for.

Unfortunately,this is not script based.But it can provide the figure you require.

http://ibs.biocuckoo.org

Log in to answer this question.