@@ -21,14 +23,12 @@ def column_recovery(file, n, sep=";"):
res.append(l[n].strip())
returnres
defcomplete_processing_of_mapping_results(file,outf,mapper,sep=";",view="all",correspondence_file="",midfile="oui",midfile_name="C:\\Users\\mumec\\Desktop\\fichier_mis_en_forme_programme_total\\mid_file.xlsx",name_of_pathways_to_filter=[]):# outfolder can be get by using the file
defcomplete_processing_of_mapping_results(file,outf,mapper,sep=";",type_of_view="all",graph_title="Graphique 1 : Recouvrement moyen des différentes voies métaboliques obtenues. Graphique 2 : fréquence des métabolites.",correspondence_file="",midfile="oui",midfile_name="C:\\Users\\mumec\\Desktop\\fichier_mis_en_forme_programme_total\\mid_file.xlsx",name_of_pathways_to_filter=[]):# outfolder can be get by using the file
"""
This function takes file of mapping and return a treatmentof of mapping pathways whith total coverage, average coverage and metabolite frequency. This data can also be visualised.
file is the results of mapping .csv
mapper is the name of the mapper use it can be CPDB (ConsensusPathDB), MA (MetaboAnalyst), ME (MetExplore) and RAMP
view takes the option to outputting data visualization such as metabolites frequencies.
type_of_view takes the option to outputting data visualization such as metabolites frequencies.
midfile takes the option to outputting file of pathways descriptions.
for results of MetExplore mapping it's a bit different of the 3 others: you need a repertorie whith all your file name : 'name (n)' with n between 1 and the number of excel you have. in file enter the name of your file. for the folder you need to write it without "" and for the number of files and column number dont remove 1