Skip to content

enable spectra_ref in mzTab - #240

Merged
ypriverol merged 10 commits into
bigbio:devfrom
WangHong007:dev
Nov 8, 2022
Merged

ypriverol merged 10 commits into
bigbio:devfrom
WangHong007:dev

Conversation

@WangHong007

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions

github-actions Bot commented Nov 3, 2022 •

Copy link
Copy Markdown

nf-core lint overall result: Passed ✅

Posted for pipeline commit 2333525

+| ✅ 155 tests passed       |+
#| ❔   3 tests were ignored |#
Details

❔ Tests ignored:

✅ Tests passed:

Run details

  • nf-core/tools version 2.6
  • Run at 2022-11-08 10:32:47

@ypriverol

Copy link
Copy Markdown
Contributor

@WangHong007 the PythonBlack is failing can you fix that error.

@WangHong007

Copy link
Copy Markdown
Contributor Author

got it @ypriverol

@ypriverol

Copy link
Copy Markdown
Contributor

@jpfeuffer jpfeuffer left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

In general I saw that you are using chunking to load the mzml info CSV.
Is it really that big or slow? I think we should:

  • speed up the code. Use less appends, less for loops, less string data
  • write one file per mzml or even per mzml+level

Comment thread bin/mzml_statistics.py Outdated
name = os.path.split(file_name)[1]
id = i.getNativeID()
MSLevel = i.getMSLevel()
rt = i.getRT() if i.getRT() else np.nan

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

What about MS3 ?

@WangHong007 WangHong007 Nov 4, 2022 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

* speed up the code. Use less appends,  less for loops, less string data

This is about mzml_statistics.py or diann_convert.py?

* write one file per mzml or even per mzml+level

Will do.

What about MS3 ?

Does MS3 have the same attributes as MS2? If so, it can be included in the statement block of MS2 when determining the MSLevel.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The first comment was about the reading of mzml_info in pmultiqc.

You will usually only have MS3 in TMT. It is similar to MS2 but often has multiple precursors. Not sure if there are important QC metrics on them. We can do it later.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Now we only count the spectrum id and retention time of MS3 (same as MS1). It will also be recorded in the corresponding *_mzml_info.tsv

Comment thread bin/mzml_statistics.py Outdated
def mzml_dataframe(mzml_folder):

file_columns = ["File_Name", "SpectrumID", "MSLevel", "Charge", "MS2_peaks", "Base_Peak_Intensity"]
file_columns = ["File_Name", "SpectrumID", "MSLevel", "Charge", "MS2_peaks", "Base_Peak_Intensity", "Retention_Time", "Exp_Mass_To_Charge"]

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Not sure if that works without an update in pmultiqc.

@jpfeuffer

Copy link
Copy Markdown
Collaborator

Comments are basically addressed but I think pmultiqc needs to be updated now to make the tests pass?

@ypriverol

ypriverol commented Nov 7, 2022 •

Copy link
Copy Markdown
Contributor

#241 I guess is better I close my PR @WangHong007 and you update yours. I did the changes in your branch @WangHong007 .

@WangHong007

Copy link
Copy Markdown
Contributor Author

@ypriverol got it.

@WangHong007
WangHong007 requested a review from jpfeuffer November 8, 2022 12:07
@ypriverol
ypriverol self-requested a review November 8, 2022 12:54
@ypriverol
ypriverol merged commit a2b2be6 into bigbio:dev Nov 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants