-
Notifications
You must be signed in to change notification settings - Fork 4
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
clean up json handling #390
Conversation
d295057
to
dcf69f9
Compare
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.
Much nicer!!
gex_cells_specified, | ||
vdj_cells, | ||
mut fate, | ||
} = parse_json_annotations_files(ctl, refdata, to_ref_index)?; |
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.
Nice! A lot cleaner
} | ||
let frac_reads_used = ann | ||
.fraction_of_reads_for_this_barcode_provided_as_input_to_assembly | ||
.map(|f| (f * 1_000_000.0).round() as u32); |
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.
Wonder what is happening here with the 1M.
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.
🤷
Once the associated enclone PR passes CI I'll merge this. |
Replaces all custom JSON parsing code with serde. Inverts control flows to return values instead of mutating collections provided by arguments.
Stacked on another feature branch, will rebase after underlying branch merges.