May-28-2021, 12:49 PM
(May-27-2021, 09:21 PM)nilamo Wrote: Is there something that isn't shown? This shouldn't have matched:ChrX
(your regex only looks for lowercase "chr")
I'm assuming that's the same reason the lowercase "t" was matched.
You are right - its actually like that:
(r"^[Cc]hr(?:0?[1-9]|[1-9][0-9]|[MXY])\t0*[1-9][0-9]*\t[^\t]*\t[ATGC]{2}