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

Loading script #6

Open
davidonlaptop opened this issue Oct 20, 2015 · 0 comments
Open

Loading script #6

davidonlaptop opened this issue Oct 20, 2015 · 0 comments

Comments

@davidonlaptop
Copy link
Member

Write a script that loads all data fetched from the previous scripts.

Script input parameters:

  • samples
  • populations
  • superpopulations
  • sequences
  • alignments
  • files

Script output (TSV Format):

  • none

Particular behavior

  • The script should use the database configuration file (see Database configuration file #5).
  • The script should create the database if it does not exists
  • The script should create the tables only if they do not exists
  • If data exists, the tables should be TRUNCATED.
  • One table is created for each of the 6 CSV files
  • Additionally, these 2 tables are created (in-memory join mapping required):
    • sample_sequences : join table between the sequences table (for in memory join, use sample_name + fastq_filename) and the files table
    • sample_alignments : join table between the alignments table (for in memory join, use bam_filename) and the files table

Example

Example of how this script could be called:

./load-mysql.sh samples.csv populations.csv superpopulations.csv sequences.csv alignments.csv files.csv 
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