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

Consider adapting long formats for output files #159

Open
alexg9010 opened this issue Feb 24, 2023 · 0 comments
Open

Consider adapting long formats for output files #159

alexg9010 opened this issue Feb 24, 2023 · 0 comments

Comments

@alexg9010
Copy link
Member

Some of the output tables of the pipeline contain fixed and flexible column names.
Examples files from the test data would be (folder [tests/output]):

  • mutations/data_mutation_plot.csv
  • mutation_counts.csv
  • mutations/Test0_mutations.csv
  • variants/Test0_variants_with_meta.csv
  • variants/data_variant_plot.csv

One location in the code where this format is created would be here:

# ensure metadata cols are first
dplyr::select(all_of(c(
"samplename",
"dates",
"location_name",
"coordinates_lat",
"coordinates_long"
)), everything())

I would suggest converting these kinds of tables to long format, such that the table headers are static.
Should a wider format be required for plotting, reporting, etc. I would suggest doing the temporary transformation directly there.

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

1 participant