-
Notifications
You must be signed in to change notification settings - Fork 12
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
Add metadata attributes to gen3manifest #741
base: master
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Tested in the preview and this seems to be working. Manifest contains useful extra keys and the gen3 command still works as expected
|
name: f.viewers?.cds?.name, | ||
atlas_name: f.atlas_name, | ||
assay_name: f.assayName, | ||
level: f.level, | ||
// make sure to replace all possible commas since we are generating a CSV file | ||
data_file_id: f.DataFileID?.replace(/,/g, ' ').trim(), | ||
parent_biospecimen_id: f.ParentBiospecimenID?.replace(/,/g, ' ').trim(), | ||
parent_data_file_id: f.ParentDataFileID?.replace(/,/g, ' ').trim(), |
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.
might be better to use some JSON to CSV conversion package (@onursumer @alisman do u have a rec?)
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.
https://www.npmjs.com/package/json-2-csv looks promising, but I guess we can refactor this later since we're already doing something similar in the generateCdsManifestFile
function.
This PR adds the same metadata fields as the SB-CGC manifest to enable joining with other information.