-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
my proposed changes #185
base: feature/cells_argument
Are you sure you want to change the base?
my proposed changes #185
Conversation
@@ -19,11 +19,10 @@ install: | |||
- conda config --add channels defaults | |||
- conda config --add channels conda-forge | |||
- conda config --add channels bioconda | |||
- conda install -c bioconda -c conda-forge snakemake | |||
- conda create -q -n snakemake snakemake>=5.3.1 python=3.6 | |||
- conda create -q -n snakemake 'snakemake>=5.3.1' 'python>=3.10' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Requires python >= 3.10 to get the | None
working.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this is only for documentation updates, not the code itself.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aaah. But then, which python is used? It was written python3.6 setup.py install
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated it on the branch to 3.11
@@ -57,7 +57,7 @@ def parse_barcode_reference( | |||
barcode_pattern = rf"^[ATGC]{{{barcode_length}}}" | |||
|
|||
header = barcodes_pl.columns | |||
set_dif = set(required_header) - set(header) | |||
set_dif = set([required_header]) - set(header) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
without the brackets it was splitting every letter of the required_header
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keep that one in, I'll merge once the PR is ready
@@ -74,7 +74,7 @@ def parse_barcode_reference( | |||
|
|||
else: | |||
barcodes_pl = barcodes_pl.with_columns( | |||
reference=pl.col(REFERENCE_COLUMN).str.strip_chars(STRIP_CHARS), | |||
reference=pl.col(required_header).str.strip_chars(STRIP_CHARS), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in barcodes_pl
there is not the 'reference' column (at least in the whitelist barcode)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm changing the behavior here a little bit. I think I'm gonna use "reference" even in the whitelist input. Just makes the logic a bit cleaner
To test I was doing: $ python cite_seq_count/__main__.py -R1 tests/test_data/fastq/correct_R1_with_cell_barcode_mm.fastq.gz -R2 tests/test_data/fastq/correct_R2.fastq.gz -t tests/test_data/tags/pass/correct_3.csv -cbf 1 -cbl 16 -umif 17 -umil 26 -wl tests/test_data/whitelist.csv
Counting number of reads in file tests/test_data/fastq/correct_R1_with_cell_barcode_mm.fastq.gz
Writing chunks to disk
Reading reads from files: tests/test_data/fastq/correct_R1_with_cell_barcode_mm.fastq.gz, tests/test_data/fastq/correct_R2.fastq.gz
Mapping reads
Mapping done
Correcting barcodes
Barcodes corrected
Traceback (most recent call last):
File "/home/ldelisle/Documents/mygit/CITE-seq-Count/cite_seq_count/__main__.py", line 208, in <module>
main()
File "/home/ldelisle/Documents/mygit/CITE-seq-Count/cite_seq_count/__main__.py", line 101, in main
final_results=final_results,
UnboundLocalError: local variable 'final_results' referenced before assignment |
3.11 ATM, haven't updated the setup file.
…Sent from my phone
On Wed, Nov 22, 2023, 22:13 Lucille Delisle ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In .travis.yml
<#185 (comment)>:
> @@ -19,11 +19,10 @@ install:
- conda config --add channels defaults
- conda config --add channels conda-forge
- conda config --add channels bioconda
- - conda install -c bioconda -c conda-forge snakemake
- - conda create -q -n snakemake snakemake>=5.3.1 python=3.6
+ - conda create -q -n snakemake 'snakemake>=5.3.1' 'python>=3.10'
Aaah. But then, which python is used? It was written python3.6 setup.py
install...
—
Reply to this email directly, view it on GitHub
<#185 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJVO2F2VZUNKPJSE2MRQUTYFZTGJAVCNFSM6AAAAAA7WQQ63GVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTONBVGM4DGOJWGQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
No description provided.