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

Feature enable sequence based metadata creation #451

Merged
merged 11 commits into from
Oct 15, 2024

Conversation

Etschbeijer
Copy link
Collaborator

Closses #447

@Etschbeijer Etschbeijer marked this pull request as ready for review October 14, 2024 12:48
Copy link
Member

@HLWeil HLWeil left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

Please reuse the fromRows function to reduce code duplication.

And please undo the styling changes not connected to the specific functions you change, to keep the PR more clean.
Also I would prefer to keep the param : type styling in general. With the ,, I'm not sure yet. But I heavily advocate against including this kind of cleanups of code-parts unrelated to the PR.


let fromMetadataCollection (collection: seq<seq<string option>>) : ArcAssay =
try
let fromRows (usePrefixes: bool) (rows: seq<SparseRow>) =
Copy link
Member

Choose a reason for hiding this comment

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

Pull this (fromRows) function out to be used both in fromMetadataSheet and your function.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed

let rows =
collection
|> Seq.map SparseRow.fromAllValues
let hasPrefix =
Copy link
Member

Choose a reason for hiding this comment

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

This hasPrefix part can be moved into the fromRows function and dropped as a param there.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed

@Etschbeijer
Copy link
Collaborator Author

Thanks for the PR!

Please reuse the fromRows function to reduce code duplication.

And please undo the styling changes not connected to the specific functions you change, to keep the PR more clean. Also I would prefer to keep the param : type styling in general. With the ,, I'm not sure yet. But I heavily advocate against including this kind of cleanups of code-parts unrelated to the PR.

Fixed the parameter styling and I will avoid style changes in the futur.

Copy link
Member

@HLWeil HLWeil left a comment

Choose a reason for hiding this comment

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

Thanks, looks good now!

@HLWeil HLWeil merged commit 0f9028c into main Oct 15, 2024
2 checks passed
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