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

FragPipe+MsFragger argument parsing (+fixing Proline Parsing Errors) #198

Merged
merged 7 commits into from
Jan 19, 2024

Conversation

enryH
Copy link
Member

@enryH enryH commented Jan 7, 2024

  • fixed_mods, variable_mods have a different format
  • fdr: given as integers, transformed to prop. (1 -> 0.01)

update FragPipe/MSFragger run to latest provided by Klemens

Will also address other issues with parsing parameters currently discussed.

- fixed_mods, variable_mods have a different format
- fdr: given as integers, transformed to prop. (1 -> 0.01)

update FragPipe/MSFragger run to latest provided by Klemens
@enryH enryH linked an issue Jan 7, 2024 that may be closed by this pull request
Henry added 3 commits January 7, 2024 20:19
sheet name was not updated. Currently if MBR is in
"Quant config" sheet, I assume that MBR was in one way used. How many algorithms are there in Proline for MBR?
@enryH enryH changed the title 🚧 🚧 FragPipe+MsFragger argument parsing (+fixing Proline Parsing Errors) Jan 8, 2024
@enryH enryH changed the title 🚧 FragPipe+MsFragger argument parsing (+fixing Proline Parsing Errors) FragPipe+MsFragger argument parsing (+fixing Proline Parsing Errors) Jan 8, 2024
@enryH enryH linked an issue Jan 8, 2024 that may be closed by this pull request
@enryH enryH marked this pull request as ready for review January 9, 2024 09:58
@enryH
Copy link
Member Author

enryH commented Jan 9, 2024

I think we still need to update the UI as FragPipe now has two parameter files.

@wolski
Copy link
Contributor

wolski commented Jan 10, 2024

@enryH @RobbinBouwmeester

ModuleNotFoundError: No module named 'pytest'

I have a problem with the pytest within the ProteoBench evniroment:
I did set up the env with
pip install flit
flit install -s

Failed to import test module: test_parse_params_proline
Traceback (most recent call last):
  File "/Users/witoldwolski/anaconda3/envs/ProteoBench/lib/python3.10/unittest/loader.py", line 436, in _find_test_path
    module = self._get_module_from_name(name)
  File "/Users/witoldwolski/anaconda3/envs/ProteoBench/lib/python3.10/unittest/loader.py", line 377, in _get_module_from_name
    __import__(name)
  File "/Users/witoldwolski/__projects/ProteoBench/test/test_parse_params_proline.py", line 5, in <module>
    import pytest
ModuleNotFoundError: No module named 'pytest'

Any idea what might be wrong?

@wolski
Copy link
Contributor

wolski commented Jan 10, 2024

Adding "pytest" to the dependencies in the pyproject.toml, and rerunning flit, fixes the import issue.

However, the pytest tests are not shown in my VS code

image

, and running pytest gives

image

@enryH
Copy link
Member Author

enryH commented Jan 10, 2024

Flit installs the dependencies for the package, not the development dependencies. So you will need to install pytest manually in your local environment.

@wolski wolski self-requested a review January 10, 2024 09:47
Copy link
Contributor

@wolski wolski left a comment

Choose a reason for hiding this comment

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

All good. The problem with the test seems to be related to my system. I will investigate it further.

@mlocardpaulet
Copy link
Contributor

mlocardpaulet commented Jan 10, 2024

Hello,
I tested it. Maybe I messed up a bit the data points in the github of the module, but we'll need to clean it up anyway.
There is an issue. The FDR is 1 (ident_fdr_psm) but should be 0.01 . I think that Proline reports the FDR in percentage.

@mlocardpaulet
Copy link
Contributor

Also, when I run it locally it does not print the points in https://github.com/Proteobench/Results_Module2_quant_DDA/ anymore. I don't know if the issue is from me.

Copy link
Contributor

@mlocardpaulet mlocardpaulet left a comment

Choose a reason for hiding this comment

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

looks good to me.

@mlocardpaulet mlocardpaulet merged commit b4cc7bf into main Jan 19, 2024
7 checks passed
@mlocardpaulet mlocardpaulet deleted the fragpipe_msfragger_params branch January 19, 2024 15:33
@mlocardpaulet
Copy link
Contributor

We still need to work on the FragPipe parameter parsing side. We need to upload two files, so need to modify the input to allow this.

@brvpuyve
Copy link
Contributor

Hi all,

Sorry for the delay.
As far as I understood from Henry, we were planning to use the fragpipe.workflow file.
From this file, most of the parameters can be extracted.
Example:
MSFragger version - Line 53 fragpipe-config.bin-msfragger=C:\Users\brvpuyve\Downloads\FragPipe-21.1\fragpipe\tools\MSFragger-4.0\MSFragger-4.0.jar
Database being used - Line 6 database.db-path=Q:\MISC_PERSONAL\Bart\Proteobench\2024-01-08-decoys-BenchmarkFASTAModule2_DDA.fasta.fas
Match Between runs - Line 66 ionquant.mbr=1 (1 being activated)
Precursor Mass Tolerance - Line 148 msfragger.precursor_true_tolerance=20
Fragment Mass Tolerance - Line 107 msfragger.fragment_mass_tolerance=0.02
Fixed modifications - Line 165 msfragger.table.fix-mods=0.0,C-Term Peptide,true,-1; 0.0,N-Term Peptide,true,-1; 0.0,C-Term Protein,true,-1; 0.0,N-Term Protein,true,-1; 0.0,G (glycine),true,-1; 0.0,A (alanine),true,-1; 0.0,S (serine),true,-1; 0.0,P (proline),true,-1; 0.0,V (valine),true,-1; 0.0,T (threonine),true,-1; 57.02146,C (cysteine),true,-1; 0.0,L (leucine),true,-1; 0.0,I (isoleucine),true,-1; 0.0,N (asparagine),true,-1; 0.0,D (aspartic acid),true,-1; 0.0,Q (glutamine),true,-1; 0.0,K (lysine),true,-1; 0.0,E (glutamic acid),true,-1; 0.0,M (methionine),true,-1; 0.0,H (histidine),true,-1; 0.0,F (phenylalanine),true,-1; 0.0,R (arginine),true,-1; 0.0,Y (tyrosine),true,-1; 0.0,W (tryptophan),true,-1; 0.0,B ,true,-1; 0.0,J,true,-1; 0.0,O,true,-1; 0.0,U,true,-1; 0.0,X,true,-1; 0.0,Z,true,-1
Variabel modifications - Line 166 msfragger.table.var-mods=15.9949,M,true

Best,
Bart

@enryH
Copy link
Member Author

enryH commented Jan 25, 2024

It's done already, but we need the .workflow and the .params file - so it's two

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

Successfully merging this pull request may close these issues.

Parsing of meta file parameters for MSFragger not finished? parse Proline parameters
5 participants