Skip to content

Commit

Permalink
still debugging process aln
Browse files Browse the repository at this point in the history
  • Loading branch information
cmatKhan committed Nov 1, 2022
1 parent b81893f commit 7a759a2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ RUN apt-get autoremove -y

RUN pip install --upgrade pip

RUN wget https://github.com/cmatKhan/callingCardsTools/archive/refs/tags/v0.0.8.tar.gz
RUN wget https://github.com/cmatKhan/callingCardsTools/archive/refs/tags/v0.0.9.tar.gz

RUN pip install v0.0.8.tar.gz
RUN pip install v0.0.9.tar.gz

RUN rm v0.0.8.tar.gz
RUN rm v0.0.9.tar.gz
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "callingCardsTools"
version = "0.0.8"
version = "0.0.9"
description = "A collection of objects and functions to work with calling cards sequencing tools"
authors = ["chase mateusiak <[email protected]>"]
license = "MIT"
Expand Down
15 changes: 10 additions & 5 deletions src/callingcardstools/database_managers/yeast/HopsDb.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,21 +309,26 @@ def add_batch_qc(self, barcode_details:BarcodeParser,id_to_bc_map_path:str = Non
tfs = list(barcode_details.barcode_dict['components']['tf']['map'].values())
batch = barcode_details.barcode_dict['batch']

parsed_tfs = []
replicates = []
for x in tfs:
try:
replicates.append(x.split(split_char)[1].replace(')', ''))
tf = x.split(split_char)[0].replace(')', '')
rep = x.split(split_char)[1].replace(')', '')
except IndexError:
replicates.append('none')
tf = x
rep = 'none'
parsed_tfs.append(tf)
replicates.append(rep)

tfs.append('undetermined')
parsed_tfs.append('undetermined')
replicates.append('none')

# create df with nrow == len(tfs). batch is repeated for each record.
# records is either split from the tf name, or 'none'
df = pd.DataFrame(
{'batch': [batch for x in tfs],
'tf': tfs,
{'batch': [batch for x in parsed_tfs],
'tf': parsed_tfs,
'replicate': replicates })

# by row, check if the entry already exists. if it does, then insert.
Expand Down

0 comments on commit 7a759a2

Please sign in to comment.