print("----------------------------------------------------------------------------
----")
def Modifier(chemin):
print("--------------------------------- Modification
---------------------------------")
# Lecture du fichier GenBank
record = SeqIO.read(chemin, "genbank")
print("----------------------------------------------------------------------------
----")
def ConsulterNet():
print("------------------- Faire une requte sur NCBI -------------------")
Entrez.email = "boutemine.nina@gmail.com"
print ("1 :recherche simple ")
print ("2 :recherche avance ")
print ("3 :Quitter le site ")
choix=input("Entrez votre choix: ")
if choix=="1":
g=input("entrez le nom du gne: ")
search= Entrez.esearch(db="nucleotide",term=g,rettype="gb")
search_results = Entrez.read(search)
print("-----------------------------Merci---------------------------------")
def programme():
choix = ''
while choix != '4' :
print("Bonjour! que voulez-vous faire?")
print("1: Lire et afficher le contenu d'un fichier Genbank")
print("2: Modifier le contenu d'un fichier GenBank existant")
print("3: Faire une requte sur le site NCBI ")
print("4: Quitter le programme")
choix = input("Entrez votre choix : ")
if choix == '1' :
chemin = input("Entrez le chemin du fichier lire : ")
LireAfficher(chemin)
elif choix == '2' :
chemin = input("Entrez le chemin du fichier modifier : ")
Modifier(chemin)
elif choix =="3":
ConsulterNet()
elif choix !='4' :
print("Erreur de choix")
if __name__ == '__main__':
programme()
m so afraid jat