biocore / metagenomics_pooling_notebook

Jupyter notebooks to assist with sample processing
MIT License
8 stars 16 forks source link

Fixes #125 #147

Closed charles-cowart closed 8 months ago

charles-cowart commented 9 months ago

Added check to ensure project_names match in the input plate-map file and the user-declared metadata.

charles-cowart commented 9 months ago

Hi @mmbryant23 @RodolfoSalido ! I know this might or may have already be rendered moot, but I decided to fix it as it didn't take long and it's based on wet-lab feedback on a real issue. This fix resolves https://github.com/biocore/metagenomics_pooling_notebook/issues/125

charles-cowart commented 8 months ago

Thanks, @charles-cowart ! Quick question - Is the check being performed on a per-sample (per row) basis?

Sorry for the late reply: In short, yes. Specifically it generates a list of unique project_names from the Project_Name column of both the metadata and the plate-map file. if the lists are equal then it passes the test. If either the metadata or the plate-map contains a mispelled or otherwise unexpected name, it will notify you with an error.