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

Assay improvements - issues #369, #370 #373

Merged
merged 25 commits into from
Dec 15, 2020
Merged

Assay improvements - issues #369, #370 #373

merged 25 commits into from
Dec 15, 2020

Conversation

Zigur
Copy link
Contributor

@Zigur Zigur commented Nov 12, 2020

Work in progress, for now, issue #369 is completed, #370 still todo.

@Zigur Zigur added this to the 0.12 milestone Nov 12, 2020
@Zigur Zigur self-assigned this Nov 12, 2020
@Zigur Zigur marked this pull request as draft November 12, 2020 17:00
@Zigur Zigur changed the title [WIP ]Assay improvements - issues #369, #370 [WIP] Assay improvements - issues #369, #370 Nov 12, 2020
@coveralls
Copy link

coveralls commented Nov 12, 2020

Coverage Status

Coverage increased (+4.2%) to 71.121% when pulling 47c366e on assay_improvements into 1c946bf on develop.

@Zigur Zigur marked this pull request as ready for review November 18, 2020 10:40
@Zigur Zigur changed the title [WIP] Assay improvements - issues #369, #370 Assay improvements - issues #369, #370 Nov 18, 2020
@Zigur
Copy link
Contributor Author

Zigur commented Nov 18, 2020

This is now ready to be reviewed and merged. @proccaserra have a look at the outputted ISA tables using https://github.com/Zigur/isa-create-notebook/blob/dev/notebooks/Investigation-from-datascriptor-config.ipynb for instance. Check that there are no duplicates in the node names (I'll add some tests on that too, before merging).

Copy link
Member

@proccaserra proccaserra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line1056 in create/model.py causes an exception "TypeError: expected string or bytes-like object" when the assay definition used is annotated with ontology terms (to reproduce switch flag for MS (annotated) to true, when testing with the notebook).

then at line 2334 in the same module, some required keys are missing "'FreeInductionDecayDataFile" (and possibly "ImageDataFile") -
TODO: review assay definitions and test all current layouts)

isatools/create/model.py Outdated Show resolved Hide resolved
@Zigur Zigur removed the request for review from proccaserra November 24, 2020 11:30
@Zigur
Copy link
Contributor Author

Zigur commented Nov 24, 2020

This is mostly completed, I'd say. I have included support for all data file types, both raw and derived, for completeness:

assert isa_class in {
# expand this set if needed
RawDataFile, RawSpectralDataFile, ArrayDataFile, FreeInductionDecayDataFile,
DerivedDataFile, DerivedSpectralDataFile, DerivedArrayDataFile,
ProteinAssignmentFile, PeptideAssignmentFile, DerivedArrayDataMatrixFile,
PostTranslationalModificationAssignmentFile, AcquisitionParameterDataFile
}

I have added two prefixes to the node names to clarify the notations:

  • AT is prepended to the assay type id
  • S is prepended to the start node (or sample node) index
  • R is prepended to the replicate node index

Some examples:

  • extract name: AT1-S9-Extract-R1
  • labelled extract name: AT1-S9-LE-R1
  • process name: AT1-S9-mass-spectrometry-Acquisition-R1
  • raw data file name: AT1-S9-raw-spectral-data-file-R1

@proccaserra have a look at this notebook for reviewing a scenario with the ontology annotated MS assay and the NMR assay

@Zigur
Copy link
Contributor Author

Zigur commented Dec 14, 2020

This seems to work also for assays with chained protocols now (see this notebook, at the moment the only functional one, others to be updated soon).

@proccaserra
Copy link
Member

looks good to me now.

@Zigur Zigur merged commit 75d864a into develop Dec 15, 2020
@proccaserra proccaserra deleted the assay_improvements branch February 22, 2022 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants