Skip to content

Commit

Permalink
added sequenced status
Browse files Browse the repository at this point in the history
  • Loading branch information
pieterprovoost committed Nov 13, 2023
1 parent a59cf87 commit 8704947
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from datetime import datetime
from unidecode import unidecode
import re
from info import site_info
from info import site_info, sequenced_samples


logging.basicConfig(level=logging.INFO)
Expand Down Expand Up @@ -261,7 +261,9 @@ def main():
else:
logger.error(f"Sampling event not found for sample {sample['name']}")

if len(result.dnas) > 0:
if result.name in sequenced_samples:
result.status = "sequenced"
elif len(result.dnas) > 0:
result.status = "extracted"
elif result.event_begin is not None:
result.status = "collected"
Expand Down
2 changes: 2 additions & 0 deletions info.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
sequenced_samples = ["EE0402", "EE0404", "EE0405", "EE0406", "EE0311", "EE0312", "EE0313", "EE0314", "EE0315", "EE0316", "EE0317", "EE0318", "EE0319", "EE0320", "EE0321", "EE0270", "EE0271", "EE0272", "EE0273", "EE0274", "EE0276", "EE0277", "EE0278", "EE0279", "EE0285", "EE0371", "EE0372", "EE0373", "EE0374", "EE0375", "EE0376", "EE0378", "EE0379", "EE0380", "EE0381", "EE0323", "EE0324", "EE0325", "EE0326", "EE0417", "EE0418", "EE0419", "EE0420", "EE0421", "EE0422", "EE0256", "EE0257", "EE0259", "EE0260", "EE0261", "EE0262", "EE0263", "EE0264", "EE0266", "EE0267", "EE0327", "EE0377", "EE0457", "EE0458", "EE0459", "EE0462", "EE0463", "EE0464", "EE0465", "EE0466", "EE0472", "EE0473", "EE0474", "EE0476", "EE0479", "EE0480", "EE0487", "EE0488", "EE0489", "EE0490", "EE0060", "EE0064", "EE0065", "EE0098", "EE0100", "EE0101", "EE0106", "EE0111", "EE0128", "EE0129", "EE0071", "EE0090", "EE0091", "EE0075", "EE0076", "EE0077", "EE0080", "EE0081", "EE0092", "EE0105", "EE0043", "EE0047", "EE0044", "EE0045", "EE0061", "EE0078", "EE0062", "EE0072", "EE0046", "EE0083", "EE0440", "EE0442", "EE0430", "EE0431", "EE0445", "EE0454", "EE0447", "EE0453", "EE0441", "EE0455", "EE0337", "EE0345", "EE0339", "EE0361", "EE0330", "EE0347", "EE0364", "EE0332", "EE0333", "EE0363", "EE0079", "EE0130", "EE0132", "EE0138", "EE0140", "EE0141", "EE0143", "EE0144", "EE0145", "EE0341", "EE0007", "EE0008", "EE0010", "EE0011", "EE0013", "EE0014", "EE0015", "EE0016", "EE0018", "EE0020", "EE0163", "EE0164", "EE0165", "EE0166", "EE0167", "EE0168", "EE0174", "EE0175", "EE0176", "EE0177", "EE0160", "EE0192", "EE0207", "EE0208", "EE0209", "EE0237", "EE0238", "EE0239", "EE0240", "EE0241", "EE0048", "EE0051", "EE0053", "EE0055", "EE0058", "EE0059", "EE0099", "EE0103", "EE0104", "EE0109", "EE0386", "EE0387", "EE0388", "EE0389", "EE0390", "EE0391", "EE0403"]

site_info = [
{ "url": "https://whc.unesco.org/en/list/937", "name": "Península Valdés", "article": None },
{ "url": "https://whc.unesco.org/en/list/154", "name": "Great Barrier Reef", "article": None },
Expand Down

0 comments on commit 8704947

Please sign in to comment.