Skip to content

Commit

Permalink
one test failed; fixed snp + control probe case in probes.py
Browse files Browse the repository at this point in the history
  • Loading branch information
marcmaxson committed Apr 3, 2020
1 parent 3d39c3c commit ed50225
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions methylprep/models/probes.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class ProbeType(Enum):
SNP_ONE = 'SnpI'
SNP_TWO = 'SnpII'
CONTROL = 'Control'
# separating out mouse probes EARLY, here, is bad because they need to be processed like any other probe, THEN removed in post-processing stage.
# I was separating out mouse probes EARLY, here, but found they need to be processed like all other probes, THEN removed in post-processing stage.
#MOUSE_ONE = 'MouseI'
#MOUSE_TWO = 'MouseII'

Expand All @@ -68,7 +68,12 @@ def from_manifest_values(name, infinium_type):
#is_mouse = name.startswith('mu') or name.startswith('rp')

if is_snp:
return ProbeType.SNP_ONE if infinium_type == 'I' else ProbeType.SNP_TWO
if infinium_type == 'I':
return ProbeType.SNP_ONE
elif infinium_type == 'II':
return ProbeType.SNP_TWO
else:
return ProbeType.CONTROL

#elif is_mouse:
# return ProbeType.MOUSE_ONE if infinium_type == 'I' else ProbeType.MOUSE_TWO
Expand Down

0 comments on commit ed50225

Please sign in to comment.