Skip to content

Commit

Permalink
10x feature barcode map hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Lioscro committed Sep 24, 2021
1 parent 6036007 commit 5d9a9f7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion kb_python/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ def copy_map(technology, out_dir):
:rtype: str
"""
technology = TECHNOLOGIES_MAPPING[technology.upper()]
archive_path = technology.chemistry.whitelist_path
archive_path = technology.chemistry.feature_map_path
map_path = os.path.join(
out_dir,
os.path.splitext(os.path.basename(archive_path))[0]
Expand Down
6 changes: 6 additions & 0 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,3 +218,9 @@ def test_move_file(self):
def test_copy_whitelist(self):
whitelist_path = utils.copy_whitelist('10xv1', self.temp_dir)
self.assertTrue(os.path.exists(whitelist_path))

def test_copy_map(self):
map_path = utils.copy_map('10xv3', self.temp_dir)
self.assertTrue(os.path.exists(map_path))
with open(map_path, 'r') as f:
self.assertIn('\t', f.readline())

0 comments on commit 5d9a9f7

Please sign in to comment.