Question: How to create a CGI script that reads a FASTA file and displays a table with three columns: 1. The ID portion of the header

How to create a CGI script that reads a FASTA file and displays a table with three columns:

1. The ID portion of the header

2. The length of the sequence

3. The rest of the header Should only shows 20 entries.

Should look like this

gi|170081572|ref|YP_001730892.1| 136 | flagellar protein FliS [Escherichia coli str. K-12 substr. DH10B]

gi|170080927|ref|YP_001730247.1| 1002 | transposase [Escherichia coli str. K-12 substr. DH10B]

gi|170083108|ref|YP_001732428.1| 195 | mannitol repressor protein [Escherichia coli str. K-12 substr. DH10B]

gi|170081288|ref|YP_001730608.1| 346 | putative oxidoreductase [Escherichia coli str. K-12 substr. DH10B]

The final result should be 3 column table

you can use biocode libraries for FASTA parsing

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!