Mercurial > repos > proteore > proteore_data_manager
changeset 41:fe21769281fa draft
"planemo upload commit ba867b8fa3352695fbda1ae764407f363ee79a50-dirty"
| author | proteore |
|---|---|
| date | Wed, 08 Jan 2020 13:44:22 +0000 |
| parents | a7bcc9a0a456 |
| children | f6a6a70712c4 |
| files | data_manager/resource_building.py data_manager/resource_building.xml |
| diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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 :
--- 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 @@ -<tool id="data_manager_proteore" name="Get source files for proteore tools" version="2020.01.08.9" tool_type="manage_data"> +<tool id="data_manager_proteore" name="Get source files for proteore tools" version="2020.01.08.10" tool_type="manage_data"> <description> to create or update reference files for proteore tools </description>
