Skip to content

Commit

Permalink
mend
Browse files Browse the repository at this point in the history
  • Loading branch information
abearab committed May 7, 2024
1 parent 929f53e commit d1c83f1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions screenpro/ngs/counter.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ def build_counts_anndata(self, source='library'):
counts_recombinants[sample] = d.set_index(['sgID_A','sgID_B'])['count']

counts_recombinants = pd.concat(counts_recombinants,axis=1).fillna(0)
# counts_recombinants = counts_recombinants[counts_recombinants.eq(0).sum(axis=1)<=6]

counts_recombinants = pd.concat([
counts_recombinants,
Expand Down Expand Up @@ -207,11 +206,11 @@ def build_counts_anndata(self, source='library'):
obs = adata.obs
)

find_low_counts(rdata, minimum_reads=0)

rdata = rdata[:,~rdata.var.low_count]

if source == 'mapped' or source == 'library':
return adata
elif source == 'recombinant':
return rdata
else:
raise ValueError("Invalid source argument. Please choose from 'mapped', 'recombinant' or 'library'. Note: 'mapped' and 'library' act the same way.")

0 comments on commit d1c83f1

Please sign in to comment.