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

clean up json handling #390

Merged
merged 15 commits into from
Mar 6, 2024
Merged

clean up json handling #390

merged 15 commits into from
Mar 6, 2024

Conversation

macklin-10x
Copy link
Contributor

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.

Base automatically changed from macklin/remove-binary-vec-io to main March 6, 2024 17:33
@macklin-10x macklin-10x force-pushed the macklin/clean-up-json-handling branch from d295057 to dcf69f9 Compare March 6, 2024 17:36
Copy link
Contributor

@sreenathkrishnan sreenathkrishnan left a 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)?;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! A lot cleaner

enclone_args/src/read_json.rs Outdated Show resolved Hide resolved
}
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);
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤷

@macklin-10x
Copy link
Contributor Author

Once the associated enclone PR passes CI I'll merge this.

@macklin-10x macklin-10x marked this pull request as ready for review March 6, 2024 20:22
@macklin-10x macklin-10x merged commit 51f755f into main Mar 6, 2024
2 checks passed
@macklin-10x macklin-10x deleted the macklin/clean-up-json-handling branch March 6, 2024 22:20
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