I m a student at computer science and I'm working in a project called Plant Breeding and for moment I need to extract genes from a file with genomes. I know that the start sequence of a gene is ATG and the stop sequences of a gene is TAA,TGA or TAG.Should I know about inside more apart of the fact that inside I will find only A,T,G,C and inside are exons and introns?
closed as too broad by David, theforestecologist, kmm, AliceD♦ Dec 19 '18 at 8:45
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
I would highly recommend you to look into the detailed descriptions (or even papers) of how gene prediction and genome annotation is done.
This is a very complicated problem and you seem to missing knowledge of many details that need to be considered, but also there is a lot known about how to do this right, so you don't have to solve this by yourself.
A few very important details, that you either haven't stated or are misunderstanding:
The the ATG codon is the start site of translation, but not the start of a gene. A gene encompasses a promoter (which are very hard to define/predict), 5' & 3' UTRs (untranslated regions) in addition to the open reading frame, which is marked by start & stop codons.
In addition the genomic (i.e. DNA) sequence will contain introns, which are usually much larger than the exons coding for the proteins, and may contain any sequences, so you can not look for codons there.
If you are working with species for which the genome sequence is already known (which is a big number of species), at least a 'rudimentary' gene prediction has very likely already been done. You can find the annotation of all identified features (like genes) in the genome annotation files corresponding to the genome, however this gets very detailed and complicated very fast.
If you are working with a newly sequenced species, where this has not yet been done you need to be aware whether you have genome and/or transcriptome sequences (the latter are important to find gene locations with high quality).
I agree with Nicolai's second point - has your species been sequenced and assembled previously? If yes, then search online for the genome annotation (https://www.ncbi.nlm.nih.gov might be a good starting point).
If your species has not been assembled and annotated, then you might want to look into de novo gene prediction software. This page has a list covering some of the various kinds https://en.wikipedia.org/wiki/List_of_gene_prediction_software