Skip to content

Commit

Permalink
Add support for Illumina NextSeq 2000 GEO platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
arteymix committed Jan 12, 2023
1 parent 1cc7af9 commit c94118f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion rnaseq_pipeline/sources/geo.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def match_geo_platform(geo_platform):
return BgiPlatform(geo_platform_title.split(' ')[0])

# Illumina HiSeq X and NextSeq 550 platforms are not prefixed with Illumina
illumina_regex = [r'Illumina (.+) \(.+\)', r'(HiSeq X .+) \(.+\)', r'(NextSeq 550) \(.+\)']
illumina_regex = [r'Illumina (.+) \(.+\)', r'(HiSeq X .+) \(.+\)', r'(NextSeq 550) \(.+\)', r'(NextSeq 2000) \(.+\)']

for r in illumina_regex:
illumina_match = re.match(r, geo_platform_title)
Expand Down
9 changes: 9 additions & 0 deletions tests/test_geo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from rnaseq_pipeline.sources.geo import match_geo_platform
from rnaseq_pipeline.platforms import IlluminaPlatform

def test_parse_illumina_platform():
platform = match_geo_platform('GPL30172')
assert isinstance(platform, IlluminaPlatform)
assert platform.name == 'Illumina'
assert platform.instrument == 'NextSeq 2000'

0 comments on commit c94118f

Please sign in to comment.