Skip to content
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

BarcodeHandler.from_file: Pass down parameters #25

Merged

Conversation

mschilli87
Copy link
Contributor

@mschilli87 mschilli87 commented Feb 23, 2024

While BarcodeHandler.__init__ has (optional) parameters to adjust barcode-related options (e.g. using non-CB SAM tags for the cell barcodes, like XC), the static from_file function called it without any of those parameters, making it impossible to adjust them when using that function.
This is resolved by adding an optional keyword argument dictionary parameters to the static function and passing all argument provided therein, if any, down to the __init__ call.

This addresses one out of two issues raised in #23.


closes #26

While `BarcodeHandler.__init__` has (optional) parameters to adjust
barcode-related options (*e.g.* using non-`CB` SAM tags for the cell
barcodes, like `XC`), the static `from_file` function called it without
any of those parameters, making it impossible to adjust them when using
that function.
This is resolved by adding an optional keyword argument dictionary
parameters to the static function and passing all argument provided
therein, if any, down to the `__init__` call.

This addresses one out of two issues raised in
arogozhnikov#23.
@arogozhnikov
Copy link
Owner

LGTM.

I'd merge this, but github says I don't have write access (will figure this out soon)

@mschilli87
Copy link
Contributor Author

@arogozhnikov: I guess this has something to do with the organisation settings of @herophilus. 🤷

@arogozhnikov arogozhnikov merged commit 88a4d3e into arogozhnikov:master Feb 27, 2024
@mschilli87 mschilli87 deleted the barcodehandler-from_file-kwargs branch February 28, 2024 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants