Skip to content

Commit

Permalink
Merge pull request #162 from pachterlab/devel
Browse files Browse the repository at this point in the history
merge devel into master
  • Loading branch information
Lioscro authored Jul 8, 2022
2 parents 7623307 + 03796ff commit ab5d313
Show file tree
Hide file tree
Showing 26 changed files with 689 additions and 2,275,402 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,4 @@ venv.bak/
# mypy
.mypy_cache/
.DS_Store
.vscode/
19 changes: 17 additions & 2 deletions kb_python/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import platform
import shutil
from collections import namedtuple
from typing import Optional
from typing import NamedTuple, Optional
from urllib.parse import urljoin

import ngs_tools as ngs
Expand Down Expand Up @@ -89,12 +89,27 @@ def get_compiled_bustools_path(alias: str = COMPILED_DIR) -> Optional[str]:
KALLISTO_PATH = get_compiled_kallisto_path() or get_provided_kallisto_path()
BUSTOOLS_PATH = get_compiled_bustools_path() or get_provided_bustools_path()


# Technology to file position mapping
Technology = namedtuple('Technology', ['name', 'description', 'chemistry'])
class Technology(NamedTuple):
name: str
description: str
chemistry: ngs.chemistry.Chemistry
show: bool = True


TECHNOLOGIES = sorted([
Technology('10XV1', '10x version 1', ngs.chemistry.get_chemistry('10xv1')),
Technology('10XV2', '10x version 2', ngs.chemistry.get_chemistry('10xv2')),
Technology('10XV3', '10x version 3', ngs.chemistry.get_chemistry('10xv3')),
Technology(
'10XV3_ULTIMA', '10x version 3 sequenced with Ultima',
ngs.chemistry.get_chemistry('10xv3_Ultima')
),
Technology(
'10XFB', '10x Feature Barcode',
ngs.chemistry.get_chemistry('10xFBonly'), False
),
Technology('CELSEQ', 'CEL-Seq', ngs.chemistry.get_chemistry('celseq')),
Technology(
'CELSEQ2', 'CEL-SEQ version 2', ngs.chemistry.get_chemistry('celseq2')
Expand Down
5 changes: 2 additions & 3 deletions kb_python/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
BUS_SC_FILENAME = 'output.s.c.bus'
BUS_UNFILTERED_FILENAME = 'output.unfiltered.bus'
BUS_FILTERED_FILENAME = 'output.filtered.bus'
BUS_MASHED_FILENAME = 'mashed.bus'
BUS_MERGED_FILENAME = 'merged.bus'
ECMAP_MERGED_FILENAME = 'merged.ec'
BUS_CDNA_PREFIX = 'spliced'
BUS_INTRON_PREFIX = 'unspliced'
ECMAP_FILENAME = 'matrix.ec'
Expand Down Expand Up @@ -63,6 +60,8 @@
INTERNAL_SUFFIX = '_internal'
UMI_SUFFIX = '_umi'
CAPTURE_FILENAME = 'capture_nonUMI.txt'
INSPECT_INTERNAL_FILENAME = 'inspect_internal.json'
INSPECT_UMI_FILENAME = 'inspect_umi.json'

# File codes.
# These are appended to the filename whenever it undergoes some kind of
Expand Down
Loading

0 comments on commit ab5d313

Please sign in to comment.