ktmeaton / ncov-recombinant

Reproducible workflow for SARS-CoV-2 recombinant sequence detection.
MIT License
18 stars 2 forks source link

AttributeError: 'NoneType' object has no attribute 'startswith' #231

Closed ktmeaton closed 1 year ago

ktmeaton commented 1 year ago

In rule sc2rf_recombinants.

  File "ncov-recombinant/sc2rf/postprocess.py", line 998, in main
    while max_lineage.startswith("X") or max_lineage == "Unassigned":

Querying cov-spectrum for region 22200:24469 Starting new HTTPS connection (1): lapis.cov-spectrum.org:443 https://lapis.cov-spectrum.org/open/v1/sample/aggregated?fields=pangoLineage&nucMutations=T22200G,G22578A,C22674T,T22679C,C22686T,A22688G,G22775A,A22786C,G22813T,T22882G,T22917G,G22992A,C22995A,A23013C,T23018C,T23019C,A23055G,A23063T,T23075C,A23403G,C23525T,T23599G,C23604A,C23854A,G23948T,A24424T,T24469A

I think it's the null that's the problem

{"errors":[],"info":{"apiVersion":1,"dataVersion":1676913536,"deprecationDate":null,"deprecationInfo":null,"acknowledgement":null},"data":[{"pangoLineage":"XAY.3","count":1},{"pangoLineage":"XAY.1","count":9},{"pangoLineage":"XAY.2","count":18},{"pangoLineage":"Unassigned","count":5},{"pangoLineage":"XBB.1.5","count":1},{"pangoLineage":"XAY.1.2","count":5},{"pangoLineage":"BA.2.10.1","count":2},{"pangoLineage":"XAY.1.1","count":14},{"pangoLineage":null,"count":5}]}