# HG changeset patch # User proteore # Date 1578491062 0 # Node ID fe21769281fa1c29edbb7bbd462e226c644b24af # Parent a7bcc9a0a4567b87a09fa841c561181a96093988 "planemo upload commit ba867b8fa3352695fbda1ae764407f363ee79a50-dirty" diff -r a7bcc9a0a456 -r fe21769281fa data_manager/resource_building.py --- a/data_manager/resource_building.py Wed Jan 08 13:28:05 2020 +0000 +++ b/data_manager/resource_building.py Wed Jan 08 13:44:22 2020 +0000 @@ -150,7 +150,7 @@ tab_reader = csv.reader(select,delimiter="\t") for line in tab_reader : tab.append([line[0]]+[line[i] for i in [0,1,2,3,4,5,6,11,13,14,18,19,20]]) - if os.path.exists(os.path.join(archive,tab_path[-1])) : os.remove(os.path.join(archive,tab_path[-1])) + if os.path.exists(os.path.join(archive,tab_path.split("/")[-1])) : os.remove(os.path.join(archive,tab_path.split("/")[-1])) shutil.move(tab_path, archive) #print("selected_tab ok") @@ -202,7 +202,7 @@ unidict[uniprotID].update({ id_type : cor_id }) elif id_type in ids : unidict[uniprotID]={id_type : cor_id} - if os.path.exists(os.path.join(archive,dat_path[-1])) : os.remove(os.path.join(archive,dat_path[-1])) + if os.path.exists(os.path.join(archive,dat_path.split("/")[-1])) : os.remove(os.path.join(archive,dat_path.split("/")[-1])) shutil.move(dat_path, archive) #print("dat_file ok") @@ -233,7 +233,7 @@ nextprot_path = id_list_from_nextprot_ftp("nextprot_ac_list_all.txt",target_directory) with open(nextprot_path,'r') as nextprot_ids : nextprot_ids = nextprot_ids.read().splitlines() - if os.path.exists(os.path.join(archive,nextprot_path[-1])) : os.remove(os.path.join(archive,nextprot_path[-1])) + if os.path.exists(os.path.join(archive,nextprot_path.split("/")[-1])) : os.remove(os.path.join(archive,nextprot_path.split("/")[-1])) shutil.move(nextprot_path,archive) next_dict = {} for nextid in nextprot_ids : diff -r a7bcc9a0a456 -r fe21769281fa data_manager/resource_building.xml --- a/data_manager/resource_building.xml Wed Jan 08 13:28:05 2020 +0000 +++ b/data_manager/resource_building.xml Wed Jan 08 13:44:22 2020 +0000 @@ -1,4 +1,4 @@ - + to create or update reference files for proteore tools