Mercurial > repos > dchristiany > frogs_data_manager
diff data_manager/FROGS_data_manager.py @ 11:0cc5f020640e draft default tip
planemo upload commit b0ebe74a020dcb21b79d8d39e7b6a2f6533b2fc4-dirty
author | dchristiany |
---|---|
date | Mon, 28 Oct 2019 06:53:13 -0400 |
parents | 238a5328279d |
children |
line wrap: on
line diff
--- a/data_manager/FROGS_data_manager.py Mon Oct 28 06:46:53 2019 -0400 +++ b/data_manager/FROGS_data_manager.py Mon Oct 28 06:53:13 2019 -0400 @@ -76,7 +76,8 @@ if len(amplicons_list)!=0: db_index = [line for line in db_index if any([amplicon in amplicons_list for amplicon in line[1].split(',')])] #filter by amplicons if len(bases_list)!=0: db_index = [line for line in db_index if line[2] in bases_list] #filter by base if len(filters_list)!=0: db_index = [line for line in db_index if line[3] in filters_list] #filter by filters - if bottom_date!=0: db_index = [line for line in db_index if int(line[0])>=bottom_date] #filter by date + if bottom_date!=0: db_index = [line for line in db_index if int(line[0])>=bottom_date] #filter by date + if args.only_last_versions=="true": db_index = keep_only_last_version(db_index) #keep only last version #get frogs dbs