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

CSV and JSON Converter #9

Open
nutjob4life opened this issue Feb 19, 2025 · 1 comment
Open

CSV and JSON Converter #9

nutjob4life opened this issue Feb 19, 2025 · 1 comment
Assignees

Comments

@nutjob4life
Copy link
Member

nutjob4life commented Feb 19, 2025

Develop a Python program that reads the biomarker database RDF and converts the information described about biomarkers into CSV and JSON formats.

The program should be run from the command-line and accepts the following flags:

  • --csv to generate comma-separated values (the default)
  • --json to generate JavaScript Object Notation (JSON)

In addition, it should accept a series of desired fields to include, such as alias, HgncName, description, qastate, etc.

The source RDF is available at these two endpoints:

A sample invocation would be:

convert-rdf --csv phase title alias > output.csv

The file output.csv would have 4 columns:

  1. The internal biomarker ID number (always emitted)
  2. Research phase of the biomarker
  3. Title of the biomarker
  4. Known aliases of the biomarker
@nutjob4life
Copy link
Member Author

@AshishMahabal could you review the above ticket? Does it sound like what we discussed at our meeting on 2025-02-19?

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

No branches or pull requests

2 participants