Comments (5)
n worries. We'll review this and introduce a fix. if you do't mind then, we'll ask you to test the fixed branch. is that OK?
from seroba.
Only when all in min_keys
are not in mixed_serotype, then mixed_serotype
should be set to None
:
if mixed_serotype != None:
for key in min_keys:
print(key)
print(mixed_serotype)
if key in mixed_serotype:
break
else:
mixed_serotype = None
When any in min_keys
is not in mixed_serotype
, mixed_serotype
should be set to None
if mixed_serotype != None:
for key in min_keys:
print(key)
print(mixed_serotype)
if key not in mixed_serotype:
mixed_serotype = None
break
from seroba.
hi Harry,
thanks for pointing this out, it is indeed a flaw in the logic and for proposing fixes.
in my view, mixed_serotype
should be just an empty string when not populated, but I think we should keep it as a None
to avoid introducing new bugs.
I think of your two proposed fixes, the first one makes more sense as in the second one, a serotype not being mentioned in the mixed_serotype
string generated by the previous _detect_mixed_samples()
call will lead to erase the rest of the information, which sounds wrong, even though I'm not too sure exactly what is the rationale behind this bit of code.
If you (and others in the team) agree, we can implement the fix.
Best wishes,
Florent
from seroba.
Agreed with your view that mixed_serotype
should never be None
to begin with, but also agreed that better keep it as-is at this point.
I also think the first fix makes more sense at a glance, but I got to be honest that I have not deep dived into the codes to have a complete understanding.
Thank you!
from seroba.
Sure, thanks for your help!
from seroba.
Related Issues (20)
- 11A/11C Misidentification HOT 4
- Default for runSerotyping coverage not being set correctly HOT 1
- Got an error massage through docker with Ubuntu20.04 LTS HOT 1
- biopython issue!
- Can't build the ariba database HOT 1
- Dependencies issues when using seroba through conda HOT 7
- latest build on docker hub is non functional
- Conda install 'createDBs' and 'getPneumocat' errors HOT 1
- Hi..any suggestions on how this error was resolved for you? HOT 1
- serotyping from assemblies as input HOT 3
- Seroba test error while installed with conda
- Error: HOT 1
- Names for forwards and reverse reads does not match. Cannot continue HOT 1
- Job runs for 17+ hours without completion
- Swiss_NT HOT 1
- Run Seroba with PneumoCat v1.2.1?? HOT 2
- errors during installation via conda/mamba HOT 2
- There is not detailed_serogroup_info in the output folder
- Error on database
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from seroba.