Osw parser/include identifying - #1
Open
singjc wants to merge 33 commits into
Open
Conversation
…togram filenames.
LLYX
requested changes
Jul 21, 2020
LLYX
left a comment
Owner
There was a problem hiding this comment.
Looks mostly good, can you also change the vstack into stack during npy saving for chromatograms as discussed?
…efactored get_chromatogram_filename to get actual last modified chrom file if more than one is present
…inary labels that map to the chromatogram_csv output from osw_parser.py
Collaborator
Author
Generating a Ground Truth Binary Label ArrayI have also added gen_ground_truth_labels.py, which can be used to generate a ground truth binary label array. I use the ...chromatogram_csv.csv output file from osw_parser.py, specifically I use the Filename column to get the peptide sequences using str.split("_"). Example |
LLYX
reviewed
Jul 22, 2020
…al to work. Added target-decoy binary label generation
…rget_decoy function
…list. Result of copy-pasting..
… only (detecting), as opposed to searching the whole tuple
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
OSW Parser Include/Exclude Identifying/ Detecting
I made some changes to only the osw_parser.py file, to allow for specifically only extracting detecting transitions (default) or to also include identifying transitions in the extraction. The changes for extracting/excluding detecting/identifying transitions was made to the get_transition_ids_and_library_intensities_from_prec_id definition.
I also added a flag to allow for unique chromatogram file names.
I added the following flags:
--chrom_name_wildcard- this by default is set to output.sqMass, this assumes all chromatograms have the same name of output.sqMass. The other special option is to set the flag to unique, this will get the unique individual chromatogram filenames in the run folders provided in--in_folder, see L#605-L612 and L#15-L21--no_detecting- the default for not setting this flag is false, this means that detecting transitions will be extracted by default. If this flag is set, then no detecting transitions will be extracted. This might be useful if you want to only extract identifying transitions.--identifying- the default for not setting this flag is false, this means that identifying transitions will not be extracted by default. If this flag is set, then identifying transitions will be extracted.Example