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

database in mapping report #289

Open
IanSudbery opened this issue Feb 8, 2017 · 7 comments
Open

database in mapping report #289

IanSudbery opened this issue Feb 8, 2017 · 7 comments
Assignees

Comments

@IanSudbery
Copy link
Member

The location of the database for pipelines is set by database_name in the ini. However, by default CGATReport looks for the database name in report_sql_backend. Some pipelines bypass this by passing backend=PARAMS["database_name"] to the TrackerSQL constructor in their pipeline specific subclassing of TrackerSQL.

I don't know if CGATReport should look for database_name for report trackers should pass database_name, but one of these should happen else the report can't find the database unless it is called csvdb and is in the current directory.

@sebastian-luna-valero
Copy link
Member

Thanks @IanSudbery

Should this be reported in the CGATReport repository instead?
https://github.com/AndreasHeger/CGATReport/issues

Best regards,
Sebastian

@sebastian-luna-valero
Copy link
Member

Is this issue related with this one?
#54

If so, have you tried the proposed solution?

@AndreasHeger
Copy link
Member

AndreasHeger commented Feb 20, 2017

CGATReport and CGATPipelines are best considered separate tools, where the former is used by the latter. report_sql_backend makes sense for CGATReport, as it describes better than "database" what is needed (i.e. not a NoSQL database). While in CGATPipelines we have made the decision to use SQL database, so "database" is sufficient. Renaming it to "report_sql_backend" would also not be quite right, as the database is the primary data repository for the database. It is not just used for report building for CGAT, but also, for example, in notebooks or within the Pipeline itself.

@IanSudbery
Copy link
Member Author

IanSudbery commented Feb 20, 2017 via email

@Acribbs
Copy link
Member

Acribbs commented Nov 10, 2017

@IanSudbery should this be closed?

@IanSudbery
Copy link
Member Author

Many pipelines are still not setting the SQL backend correctly. A brief check shows that at least mapping and readqc are not:

Mapping uses the default CGATReport locations.
readqc actaully overrides this with its own special set of locations that are different from CGATReport, but still not the correct ones.

@Acribbs
Copy link
Member

Acribbs commented Nov 10, 2017

Ok, im not really best to solve this as I always found CGAT report an enigma. Just so you are aware we are hoping to transition away from CGAT report and rely on multiqc for generic QC visualisation and bespoke reporting using Rmarkdown or Jupiter notebook in the future.

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

4 participants