A short script to use the nontarget pattern.match function to print useful information about clusters.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.7 KiB

3 years ago
3 years ago
3 years ago
  1. # Specifications for the script
  2. **Use the Nontarget**
  3. - Clusters should have large enough number of fragments (3+ maybe)
  4. - nontarget has a pattern match function.
  5. - Check for chlorinated compounds (has n+2, n+4, ...)
  6. - GPL License (good)
  7. - Script to get output for all of the results
  8. - tabbed-deliminated text file
  9. - Which clusters contain chlorinated compounds, how many fragments, what other
  10. isotopes.
  11. ## format
  12. - Readable by R.
  13. - Manipulatable by Tidyverse
  14. - Include it in script?
  15. # Additional Notes
  16. - Independent of the ordering (it might get corrupted)
  17. - Just search for chlorinated/brominated compounds.
  18. - usually, use_charges will be 1
  19. - Headers to use in script.
  20. - Packages to do things in parallel (multiple threads)
  21. - be able to configure the number of cores or threads used.
  22. - make it a requirement to be tab-deliminated.
  23. - eliminate clusters with only m/z.
  24. # Notes
  25. - cutint represents high enough intensity.
  26. - mztol is in terms of ppm.
  27. - mzfrac is in terms of absolute.
  28. - PPM = true always
  29. - First pass - (identify all of the fragments where chlorinated/brominated
  30. compounds are found and carbon)
  31. - If isotopes exist, which ones have chlorines/bromines...
  32. - return a data frame.
  33. - No statistical testing required (check if it is chlorine or bromine)
  34. - Isotopes to check (Carbon, Sulfur, Chlorine, Bromine all have n+2) (check make.isos object)
  35. - Tweak parameters (but also put them into a slideshow/record, see how good the results are).
  36. - **set all rules to false**
  37. ## Isotopes
  38. - These isotopes will tend to have different intensities
  39. - Part of the reasoning can be attributed to differences.
  40. - Forseeable future, adapt to different isotopes.
  41. - Capture multiple outputs of different isotopes.